Actualités

For fetching the first row in the above dataframe example, you’d use df.iloc[0]. If you want to fetch a range of rows, you can use .iloc[] with Python’s slicing syntax.