We finished the previous exploration by analysing the data by genre and found that the children's books in our dataset were generally published a little later. Exploring Data Groups We can take a closer look at the characteristics of data subsets using the .groupby() function. It groups the data according to a specific category, then applies an aggregation function such as .mean() or .count() to describe the data in each group. For example, we can group the book data by genre by passing the column name "genre" to the groupby function. No
The rest of this lesson is reserved for subscribers Create your free account to try the sample exercises, then upgrade to full access whenever you like.