def ROver_sampler(Self, dataset, sampling_strategy="auto", random_state=None): X_modified, Y_modified = RandomOverSampler( sampling_strategy=sampling_strategy, random_state=random_state).fit_resample(*Data_split(dataset)) return X_modified.merge(Y_modified, left_index=True, right_index=True)