Problem 2 : Create a Dataframe whose index is winery and whose…

Question Answered step-by-step Problem 2 : Create a Dataframe whose index is winery and whose… Problem 2 : Create a Dataframe whose index is winery and whose values is the maximum number of points a wine costing that much was given in a review. Sort the values by points, descending (so that 80 points is at the bottom and 100 points is at the top).reviews_p_m = reviews.groupby(‘winery’).points.max().sort_index()reviews_p_m = reviews_p_m.reset_index()reviews_p_m.sort_values(by=’points’, ascending=False)winery points3733 Château Léoville Barton 10010245 Louis Roederer 100  Computer Science Engineering & Technology Python Programming COMPUTING 14 Share QuestionEmailCopy link Comments (0)