Read in the movie dataset and slim it down to just the three columns we care about, movie_title, title_year, and imdb_score:
>>> movie = pd.read_csv('data/movie.csv') >>> movie2 = movie[['movie_title', 'title_year', 'imdb_score']]
Use the sort_values method to sort the DataFrame by title_year. The default behavior sorts from the smallest to largest. Use the ascending parameter to invert this behavior by setting it equal to True: