0
A
回答
0
傑夫提到你會發現在official docs此信息。例如:
>>> df = DataFrame(np.random.rand(3,2), index = list('abc'), columns=list('df'))
>>> df
d f
a 0.629197 0.921025
b 0.534993 0.018760
c 0.156801 0.298251
指數:
>>> df.index
Index([a, b, c], dtype=object)
列:
>>> df.columns
Index([d, f], dtype=object)
相關問題
- 1. 大熊貓DataFrame索引按月嗎?
- 2. 如何檢查熊貓DataFrame條目是否存在(索引,列)
- 3. 熊貓DataFrame - 所需的索引有重複值
- 4. 大熊貓DataFrame樣式化HTML顯示沒有索引?
- 5. 熊貓DataFrame相等 - 索引編號
- 6. 多索引熊貓DataFrame順序排序
- 7. 使用索引編輯熊貓DataFrame
- 8. 熊貓重建索引dataframe multiindex
- 9. 熊貓DataFrame合併重置索引
- 10. 系列索引大熊貓
- 11. 檢索熊貓數據框列索引
- 12. 多重索引行與大熊貓的列DataFrame
- 13. DataFrame上的多重索引和大熊貓的總和
- 14. 熊貓列索引搜索?
- 15. 連續兩個熊貓DataFrame與同列/索引到一個DataFrame
- 16. Python - 熊貓索引
- 17. 請多隻大熊貓的所有索引GROUPBY
- 18. 熊貓 - Extend DataFrame的索引將新行的所有列設置爲NaN?
- 19. 如果基於索引子集的聲明 - 熊貓dataframe
- 20. 瞭解大熊貓據幀索引
- 21. 大熊貓重命名索引值
- 22. 用大熊貓刪除索引列表
- 23. Python大熊貓:切片/索引混淆
- 24. Python的大熊貓to_json索引格式
- 25. 查詢大熊貓數據框索引
- 26. 大熊貓分層索引唯一值
- 27. 禁用索引大熊貓數據幀
- 28. 獲取列索引在Python大熊貓
- 29. 索引一個大熊貓據幀
- 30. 在Python轉化列索引大熊貓
嘗試:df.index,df.columns,新用戶在文檔:http://pandas.pydata.org /pandas-docs/dev/10min.html – Jeff 2013-04-20 17:10:58