|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
使用pandas读取excel出错了,删库重装了好多次不知道错哪里了
pandas.read_excel('./qt设计师/MLM/excel/介绍人.xls')
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\Users\Jacky cheung\.conda\envs\untitled1\lib\site-packages\pandas\util\_decorators.py", line 296, in wrapper
return func(*args, **kwargs)
File "C:\Users\Jacky cheung\.conda\envs\untitled1\lib\site-packages\pandas\io\excel\_base.py", line 334, in read_excel
mangle_dupe_cols=mangle_dupe_cols,
File "C:\Users\Jacky cheung\.conda\envs\untitled1\lib\site-packages\pandas\io\excel\_base.py", line 926, in parse
**kwds,
File "C:\Users\Jacky cheung\.conda\envs\untitled1\lib\site-packages\pandas\io\excel\_base.py", line 517, in parse
output[asheetname] = parser.read(nrows=nrows)
File "C:\Users\Jacky cheung\.conda\envs\untitled1\lib\site-packages\pandas\io\parsers.py", line 1198, in read
ret = self._engine.read(nrows)
File "C:\Users\Jacky cheung\.conda\envs\untitled1\lib\site-packages\pandas\io\parsers.py", line 2591, in read
data = self._convert_data(data)
File "C:\Users\Jacky cheung\.conda\envs\untitled1\lib\site-packages\pandas\io\parsers.py", line 2661, in _convert_data
clean_dtypes,
File "C:\Users\Jacky cheung\.conda\envs\untitled1\lib\site-packages\pandas\io\parsers.py", line 1830, in _convert_to_ndarrays
values, set(col_na_values) | col_na_fvalues, try_num_bool
File "C:\Users\Jacky cheung\.conda\envs\untitled1\lib\site-packages\pandas\io\parsers.py", line 1891, in _infer_types
na_count = isna(result).sum()
File "C:\Users\Jacky cheung\.conda\envs\untitled1\lib\site-packages\numpy\core\_methods.py", line 47, in _sum
return umr_sum(a, axis, dtype, out, keepdims, initial, where)
TypeError: int() argument must be a string, a bytes-like object or a number, not '_NoValueType'
|
|