在熊猫中导入csv文件时出现警告消息

时间:2018-08-11 05:07:57

标签: python-3.x pandas

我按如下方式读取了一个csv文件

df = pd.read_csv("C:Desktop\\ds-projects\\sales.csv")

我收到以下警告消息,那很关键,如何删除它?

C:\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py:2785: DtypeWarning: Columns (6,7) have mixed types. Specify dtype option on import or set low_memory=False.
  interactivity=interactivity, compiler=compiler, result=result)

0 个答案:

没有答案