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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -