报错合集

 <bound method Series.函数名> 
指出函数没加括号()
TypeError: Index(...) must be called with a collection of some kind

DataFrame的index和columns必须是某种集合[],{},但不能是元组()
NameError: name 'nan' is not defined
把nan改为np.nan
读的时候:
df=pandas.read_csv()
写的时候:
df.to_csv() #写的时候不再是pandas的属性

两种groupby的写法,注意第二种红框里是[[]]

原文地址:https://www.cnblogs.com/xuwinwin/p/15751258.html