[IT学习]Python pandas 学习

今天学习pandas来处理数据,结果用python 3.5.0的shell来调试,总是报错。

报错中包含如下字样:

Traceback (most recent call last):
File "<pyshell#17>", line 1, in <module>
pd.DataFrame(a)
File "C:\Users\******\AppData\Local\Programs\Python\Python35-32\lib\idlelib\rpc.py", line 611, in displayhook
text = repr(value)

。。。。

AttributeError: 'NoneType' object has no attribute 'fileno'

 

后来搜索“line 611, in displayhook”找到这个帖子:

https://stackoverflow.com/questions/44506902/dtypes-returning-attributeerror

里面提到“You seem to be using IDLE. Try not using IDLE.”

结果按照这个建议改了下,就得到了结果了。

 

背后的原因尚不得而知。

 

【经验】

1、刚开始只是搜索了最后的“报错”,其实要尽量提供更多的最开始的报错来尝试搜索。

2、要深入学习。

转载于:https://www.cnblogs.com/viphhs/p/7232796.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值