【发布时间】:2017-10-02 00:17:34
【问题描述】:
我有一个庞大的数据框,我收到了错误:
TypeError: ("Empty 'DataFrame': no numeric data to plot", 'occurred at index 159220')
我已经删除了空值,并检查了 DataFrame 的 dtypes,所以我不知道为什么它在该行上失败了。
如何只打印数据框的那一行(索引 159220)?
谢谢
【问题讨论】:
-
print(df.iloc[[index]])
标签: python python-3.x pandas indexing