我正在使用类,并且拥有self.variables,在我想要这样做之前,这根本没有问题:
我想通过索引减去一个df的值
import pandas as pd
.
.
.
for index, row in self.DataFrame4.iterrows():
self.DataFrame1=pd.self.DataFrame3.subtract(self.DataFrame2, axis='index')
结果是:
AttributeError: module 'pandas' has no attribute 'self' most likely because of "pd.self"
要解决此问题,有什么好办法?