Solution 1: pandas Essentials
Explore the core functions of the pandas library to manipulate and analyze datasets. Learn to display data, calculate statistical measures, and filter records by conditions like profession or spending to extract meaningful insights.
Task 1: Display the head
To see what the data looks like, display the first five rows of your dataset.
Solution
Explanation
As we learned in our previous lessons, df.head() returns the first five rows of a dataset. We used this method to produce and print our first five rows.
Task 2: Min, max, and mean of ages
Return ...