How to select the first observation with Pandas• 0 min
Knowing how to select the first observations of a DataFrame might come in handy when you are doing some data exploration.
Using the DataFrame.head() method will select the top 5 by default.
Selecting the first observations
Selecting the first 3 observations
Here you are ! You now know how to select the first n observations of a DataFrame.