Pandas - Get first row value of a given column

前端 未结 7 1943
甜味超标
甜味超标 2020-11-28 18:05

This seems like a ridiculously easy question... but I\'m not seeing the easy answer I was expecting.

So, how do I get the value at an nth row of a given column in Pa

7条回答
  •  余生分开走
    2020-11-28 18:07

    1. df.iloc[0].head(1) - First data set only from entire first row.
    2. df.iloc[0] - Entire First row in column.

提交回复
热议问题