How to print a specific row of a pandas DataFrame?

前端 未结 5 1262
陌清茗
陌清茗 2021-01-29 23:01

I have a massive dataframe, and I\'m getting the error:

TypeError: (\"Empty \'DataFrame\': no numeric data to plot\", \'occurred at index 159220\')

5条回答
  •  盖世英雄少女心
    2021-01-29 23:28

    Sounds like you're calling df.plot(). That error indicates that you're trying to plot a frame that has no numeric data. The data types shouldn't affect what you print().

    Use print(df.iloc[159220])

提交回复
热议问题