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. 檢索熊貓數據框列索引
- 5. 熊貓列索引搜索?
- 6. 連續兩個熊貓DataFrame與同列/索引到一個DataFrame
- 7. Python - 熊貓索引
- 8. 請多隻大熊貓的所有索引GROUPBY
- 9. 大熊貓:繞過數字索引
- 10. Python的大熊貓to_json索引格式
- 11. 用大熊貓刪除索引列表
- 12. 關於大熊貓據幀索引
- 13. 查詢大熊貓數據框索引
- 14. 大熊貓重命名索引值
- 15. 如果基於索引子集的聲明 - 熊貓dataframe
- 16. 如何獲得熊貓的行索引?
- 17. 用熊貓分級索引
- 18. 熊貓摘要索引
- 19. 熊貓DataFrame.groupby包括索引
- 20. 熊貓索引isin方法
- 21. 熊貓上索引列
- 22. 熊貓索引編組後
- 23. 重置列索引熊貓?
- 24. 熊貓多級索引行
- 25. 熊貓索引跳過值
- 26. 熊貓:基於索引
- 27. 熊貓DataFrame引導表
- 28. 熊貓read_html檢索表
- 29. 從熊貓多索引數據幀
- 30. 熊貓堆疊DataFrame並連接列索引的名稱
嘗試:df.index,df.columns,新用戶在文檔:http://pandas.pydata.org /pandas-docs/dev/10min.html – Jeff 2013-04-20 17:10:58