Recap: Movie Ratings
Part of the Data and Plots section of Coddy's Machine Learning journey. Lesson 36 of 60.
Challenge
MediumTime for the four-line movie card this chapter promised, for a film club's newsletter. movies.csv has the columns title, year, rating (out of 10) and votes.
- Load it into
movies. - Keep the
.describe()of onlyratingandvotesinsummary. - Print the card below, looking up every number in
summary: the count, the lowest and highest rating, the average rating rounded to 2 decimals, and the50%value ofvotes.
For a file of 4 cartoons:
Movies: 4
Ratings run from 6.4 to 7.7
Average rating: 7.05
Half the movies have over 16600 votesTry it yourself
import pandas as pd
# Write your code below
All lessons in Data and Plots
7pandas DataFrames
SeriesDataFramesReading CSV FilesInspecting DataSelecting ColumnsRecap: Movie Ratings2NumPy Arrays
Creating ArraysShape and SizeRanges of NumbersIndexing and SlicingRecap: Temperature GridPractice on your own: Online Python compiler