作者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/m.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