正想导入数据到python作分析
找到这个教程
https://www.cnblogs.com/OliverQin/p/8966321.html
我要导入CSV文件,已经放在相同目录之下。
import pandas as pd
data = pd.read_csv("电信客户流失.csv",encoding="utf8")
报错如下
---------------------------------------------------------------------------
UnicodeDecodeError Traceback (most recent call last)
<ipython-input-5-6f8087e333bd> in <module>()
1 import pandas as pd
----> 2 data = pd.read_csv("电信客户流失.csv",encoding="utf-8")
/usr/local/lib/python3.5/dist-packages/pandas/io/parsers.py in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, nrows, na_values, keep_default_na, na_f