Get n'th row of dataframe

Imports

# Load library
import pandas as pd

Create data

df = pd.DataFrame({
    "apples": [1, 1],
    "oranges": [2, 4]
})

Get dataframe with .iloc[[]]

df.iloc[[0]]

apples oranges
0 1 2

Get series with iloc[]

df.iloc[0]
apples     1
oranges    2
Name: 0, dtype: int64