Question: Python Programming CSV FILES View/Download https://www.dropbox.com/s/661ncr97tzppozx/imdb-top-casts.csv?dl=0 https://www.dropbox.com/s/q7ko5u3af3or3rc/imdb-top-grossing.csv?dl=0 https://www.dropbox.com/s/jlnsmc2xp6mouz0/imdb-top-rated.csv?dl=0 For this problem we play with CSV files and dictionaries using data from IMDB lists with top
Python Programming
CSV FILES View/Download https://www.dropbox.com/s/661ncr97tzppozx/imdb-top-casts.csv?dl=0
https://www.dropbox.com/s/q7ko5u3af3or3rc/imdb-top-grossing.csv?dl=0
https://www.dropbox.com/s/jlnsmc2xp6mouz0/imdb-top-rated.csv?dl=0
For this problem we play 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 4 Canvas page imdb-top-rated.csv, listing the ranking of the top rated 250 movies. It has this format: Rank,Title, Year,IMDB Rating imdb-top-grossing.csv, listing the ranking of the highest grossing 250 movies. It has this format Rank,Title, Year, USA Box Office imdb-top-casts.csv, listing the director and cast for the movies in the above files. It has this format: Title,Year,DirectorActor 1,Actor 2,Actor 3,Actor 4,Actor 5. The actors are listed in billing order. This file does not have a heading. These files are from Duke U. and seem to date from 2014 a) Write a function called display_top_collaborations that displays the ranking of tuples (director, first billed actor (i.e. Actor1), and number of movies) for movies in which the director and actor worked together 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 imdb-top-casts.csv file exceeds the number of movies in imdb- top-rated.csv. You may have to open the csv files like this: open(filename, 'r', encoding 'utf-8') b) Write a function called display_top_directors that displays the ranking of movie directors from the top grossing list ordered by the total box office money they produced. c) Write a main function that tests the code from parts a) and b) Take a screenshot of the program's output (parts a, b, c) where each printed ranking list is limited to the first 5 entries and insert it in the doc file right after the code. You get 8 points deducted if the screenshot is missing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
