December 2017
Intermediate to advanced
386 pages
10h 42m
English
The first thing we need to do is configure pandas:
# import numpy and pandasimport numpy as npimport pandas as pd# used for datesimport datetimefrom datetime import datetime, date# Set some pandas options controlling output formatpd.set_option('display.notebook_repr_html', False)pd.set_option('display.max_columns', 8)pd.set_option('display.max_rows', 10)pd.set_option('display.width', 90)# bring in matplotlib for graphicsimport matplotlib.pyplot as plt%matplotlib inline
movie = pd.read_csv('data/movie.csv')movie2 = movie[['movie_title', 'title_year', 'imdb_score']]
Read now
Unlock full access