Question: For this problem we work with CSV files and dictionaries using data from IMDB lists with top rated and top grossing movies. These CSV files
For this problem we work with CSV files and dictionaries using data from IMDB lists with top rated
and top grossing movies.
These CSV files are linked on the Homework Canvas page:
imdbtoprated.csv listing the ranking of the top rated movies. It has this format:
Rank,Title,Year,IMDB Rating
imdbtopgrossing.csv listing the ranking of the highest grossing movies. It has this format:
Rank,Title,Year,USA Box Office
imdbtopcasts.csv listing the director and cast for the movies in the above files. It has this format:
Title,Year,Director,Actor Actor Actor Actor Actor The actors are listed in billing order.
This file does not have a heading.
These files are from Duke University and seem to date from
a Write a function called displaytopcollaborations that displays the ranking of tuples director actor,
and number of movies for movies in which the director and actor worked together and the movie is
also listed in the top rated movie list. The list should be in descending ordered of the total number of
movies that director and that actor worked together. For equal values the order does not matter.
Notice that the number of movies in the imdbtopcasts.csv file exceeds the number of movies in imdb
toprated.csv You may have to open the csv files like this: openfilenamer encoding 'utf
b Write a function called displaytopactors that displays the ranking of actors from the top grossing
list ordered by the total box office money they acted in
c Write a main function that tests the code from parts a and b
Take a screenshot of the programs output parts a b c where each printed ranking list is limited to
the first entries and insert it in the doc file right after the code. You get points deducted if the
screenshot is missing.
Implementation requirements:
Follow these requirements to get full credit.
Apply the topdown design methodology. Seek commonality among the tasks listed above. Break
the problems into subproblems divide & conquerstyle, then write functions dealing with the
subproblems.
Use dictionaries and the csv module to solve the problem.
Implement a simple way to optionally cut the ranking displays to a number of entries. code in python in code just put insert csv file here for where it need to go and how to implement it please thank you
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
