pandas select number of rows code example
Example 1: Returns the number of rows in this DataFrame
# Returns the number of rows in this DataFrame
df.count()
# 2
Example 2: pandas return specific row
df.iloc[1] # replace index integer with specific row number
Example 3: how to use loc and iloc in pandas
>>> df.iloc[0, 1]
2