【pandas使用遇到的问题】 have mixed types. Specify dtype option on import or set low_memory=False.

question:

import pandas as pd
pd1 = pd.read_csv('D:/python34/program/wx_chat_single/qq_single.csv')
D:\python34\python.exe D:/python34/program/wx_chat_single/t1.py
sys:1: DtypeWarning: Columns (18) have mixed types. Specify dtype option on import or set low_memory=False.

Process finished with exit code 0

解决办法:

import pandas as pd
pd1 = pd.read_csv('D:/python34/program/wx_chat_single/qq_single.csv', low_memory=False)
阅读更多
换一批

没有更多推荐了,返回首页