Question: 2 . For the data given below, write python code that can aggregate this dataset to show the average Rating and average Price for each
For the data given below, write python code that can aggregate this dataset to show the average Rating and average Price for each Author within each Genre. However, include only those authors who have published at least books in that genre. Sort the resulting DataFrame by genre first, and then by the highest average rating within each genre.
Marks For the data given below, write python code that can aggregate this dataset to show the average Rating and average Price for each Author within each Genre. However, include only those authors who have published at least books in that genre. Sort the resulting DataFrame by genre first, and then by the highest average rating within each genre.
tableGenreAuthor,Rating,PriceFictionAuthor AFictionAuthor AFictionAuthor AFictionAuthor ANonFiction,Author B
Marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
