Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello there, I have an error with my code and I don't understand what to do to fix this, would someone be able to correct

image text in transcribedHello there, I have an error with my code and I don't understand what to do to fix this, would someone be able to correct this code for me and explain their answer? Thanx :)

jupyterhub hw02 Last Checkpoint: Last Monday at 7:43 PM (autosaved) Question 1.7. What proportion of movies in our dataset were originally released in each country? Create a DataFrame indexed by 'Country' with one column called 'Proportion' containing the proportion of movies in the dataset that were released in that country. Order the rows in descending order of and assign this DataFrame to country_proportions . Hints: - Proportions can be easily calculated from counts. - If you pass in a list of columns names to . get ( ), the result will be a DataFrame containing only the columns specified in the list. Question 1.8 Create a horizontal bar chart that displays the mean 'Review Rating' for each country. Sort the bars so the country that with the lowest mean appears at the very top, and the country with the highest mean appears at the bottom. Hint: To get the bar chart to display nicely, try adding the keyword argument figsize =(10,10)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

Students also viewed these Databases questions

Question

Describe the three models of stereotype change.

Answered: 1 week ago