Pass pandas dataframe into class
I would think you could create the dataframe in the first instance with
a = MyClass(my_dataframe)
and then just make a copy
b = a.copy()
Then b is independent of a
I would like to create a class from a pandas dataframe that is created from csv. Is the best way to do it, by using a @staticmethod? so that I do not have to read in dataframe separately for each object