AttributeError:模块“ pandas”没有属性“ self”

时间:2018-08-10 20:48:33

标签: python pandas class dataframe attributeerror

我正在使用类,并且拥有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"

要解决此问题,有什么好办法?

0 个答案:

没有答案