Answers for "pandas select number of rows"

1

pandas return specific row

df.iloc[1] # replace index integer with specific row number
Posted by: Guest on December-10-2020
0

how to use loc and iloc in pandas

>>> df.iloc[0, 1]
2
Posted by: Guest on June-06-2020

Python Answers by Framework

Browse Popular Code Answers by Language