作者granly (granly)
看板Python
标题[问题] pandas操作问题
时间Wed Mar 8 03:07:18 2017
xxx=pandas.read_csv
xxx.head() 无显示数据
print(xxx.head()) 有显示
请问有人知道为什麽要用print吗?
我看十分钟学pandas这个教程都没使用...我是用pycharm在写,笨问题请教...谢谢!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 27.246.167.199
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Python/M.1488913641.A.6A9.html
1F:推 timTan: print 才能输出到 standard out 03/08 03:16
2F:推 ntumath: 如果你是在jupyter notebook ,如果指定t=xxx.head(),再 03/08 04:06
3F:→ ntumath: 打一个t就可以了 03/08 04:06
4F:推 hung0724: 用 jupyter 时 xxx.head() 才会显示 03/08 11:05
5F:推 tsoahans: 交谈式介面才会自动帮你print 03/08 11:59
6F:推 exthrash: 如果你是用pycharm的console xxx.head()应该会有 03/08 14:02