pip install pandas pip install xlrd 大量记录的时候,用EXCEL排序处理比较费劲,EXCEL程序动不动就无响应了,用pands完美解决. # We will use data structures and data analysis tools provided in Pandas library import pandas as pd # Import retail sales data from an Excel Workbook into a data…
1.sys:1: DtypeWarning: Columns (0,1) have mixed types. Specify dtype option on import or 解决办法:PANDAS默认使所占用空间最小的类型来储存数据.df = pd.read_csv('XXX.csv', low_memory=False) 2.comparing dtype [float64] array with a scalar of type [bool] in Pandas DataFrame 符号…