python - creating a class of functions with pandas -
im going make program functions regularly use , thought make classes (my first time making classes) need
i need class reads dataframe , prints tail of dataframe start, write functions class output regression , fourier transform on having trouble printing tail... here code:
class my_data: def __init__(self, the_data): self.the_data = pd.dataframe(the_data) def print_tail(self, the_data): return pd.tail(the_data) = my_data(the_data = pd.read_csv('training_x.csv')) print(a.print_tail())
i thought creating class , passing pd.dataframe through it, inherits functions of pandas if wrap in own function within class? guys im bit lost
Comments
Post a Comment