这个报错是为什么呀
写了个循环把它放进去就出错了
FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
def save(self, list):
if os.path.exists(self.path):
df = pd.read_excel(self.path)
df = df.append(list)
else:
df = pd.DataFrame(list)
改成
def save(self, list):
if os.path.exists(self.path):
df = pd.read_excel(self.path)
df = df.concat(list)
else:
df = pd.DataFrame(list)
又会提示我没有concat这个属性
AttributeError: 'DataFrame' object has no attribute 'concat'