Files
2026-02-08 04:38:10 +03:30

12 lines
293 B
Python

import pandas as pd
from sklearn.utils import resample, shuffle
class Preprocessor:
def __init__(self, df: pd.DataFrame):
self.df = df
def resample(self, replace=False):
return resample(self.df, replace=replace)
def shuffle(self):
return shuffle(self.df)