Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Answer the following questions on the movies dataset. The dataset is available MS teams under the Files - > Class Material - > labsheets -
Answer the following questions on the movies dataset. The dataset is available MS teams
under the Files Class Materiallabsheetslabsheet folder.
Notes
To be able to read excel files you have to install xlrd package on pycharm.
In some questions you may need to search for new methods that are not covered in
the lab slides.
Task:
Find The median and standard deviation of the Reviews by Users.
Find The minimum number of Facebook likes Movie for actor for each language
List All Mexico movies that have Spanish language.
List the names of Director and the Country for the 'Green Zone movie.
Find the number of movies for each Actor
Find the year where the maximum number of movies released
Find the average IMDB score and total budget for movies for the
'ComedyDramaRomanceas movies
Find the percentage of movies that have a name with one word.
List all ComedyFamily movies
Remove the 'Facebook Likes Actor and 'Facebook Likes Actor 'columns check the
drop method
Set the Budget value for the movies with missing budget to the average of the movies
budget and the IMDB score for the movies with missing score to the value of the
maximum IMDB score in the table.
Add new column to the dataframe labeled 'Reviews' that have the sum of 'Reviews by
Users' and 'Reviews by Crtiics' columns.
Rename the column 'IMDB Score' to 'NormIMDB' with all data divided by
Write the modified dataframe to an excel file named moviesupdated.xls The updates
in questions and should be reflected on the saved file.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started