How to print a specific row of a pandas DataFrame?

前端 未结 5 1312
陌清茗
陌清茗 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:35

    If you want to display at row=159220

    row=159220
    
    #To display in a table format
    display(res.loc[row:row])
    display(res.iloc[row:row+1])
    
    #To display in print format
    display(res.loc[row])
    display(res.iloc[row])
    

提交回复
热议问题