Question · Python course · Module 8: Data Science
The head() Method
What does the df.head() method do?
Answer options
- Returns the first element of each column
- Returns column headers
- Returns the first 5 rows of the DataFrame
- Sorts the DataFrame from the beginning
You can check the correct answer by solving this task in the CodeWorlds game.