Question: Problem 2 : Movie Data Analysis ( hw 0 _ p 2 . py ) In this homework, you are asked to write a program
Problem : Movie Data Analysis hwppy
In this homework, you are asked to write a program for answering the following questions
based on IMDB Movie data IMDBMovieData.csv You are required to write a function for
answering each question. You may want to use Python's File reading, List, Dictionary, and
Functions. You cannot use any packages. The output format of each question is free.
Find all actors who collaborate with Johnny Depp in direct and indirect ways
Example:
A collaborates with B
B collaborates with C and D
All actors directly and indirectly
C collaborates with and
collaborating with A include:
D collaborates with A and G
G collaborates with H
below are the sample csv file
Rank,Title,Genre,Director,Actors,Year,Runtime MinutesRating,Votes,Revenue MillionsMetascore
The Dark Knight,ActionCrimeDramaChristopher Nolan,Christian Bale Heath Ledger Aaron EckhartMichael Caine,
FAQ
After the Actors in the second question data are segmented, if their names are not exactly the same, they will be regarded as different actors.
The sixth question of the second question is changed to print out all the actors in the largest GAP YEAR
For the second question, if there are multiple actors tied for the same ranking all actors tied for the same ranking need to be listed as the answer.
If revenue in the second question is blank, the movie will be omitted.
The second question in the second question, the algorithm with the highest average income can have multiple calculation methods. Please also explain how it is defined in the code.
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
