class myDataframe(pd.Dataframe)
def init.....
....
self.my_attribute = ['a', 'b', 'c']
如果这么干的话,pandas会提示UserWarning: Pandas doesn't allow columns to be created via a new attribute name - see https://pandas.pydata.org/pandas-docs/stable/indexing.html#attribute-access
有咩有什么办法可以避免这个warning咧?
stackoverflow 上也有人问:
https://stackoverflow.com/questions/47631230/pandas-store-a-list-as-a-dataframe-attribute
谢谢