forked from NYUDataBootcamp/Lab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFandango_via538.py
More file actions
30 lines (22 loc) · 770 Bytes
/
Fandango_via538.py
File metadata and controls
30 lines (22 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""
Fandango and other movie ratings
Links
* http://fivethirtyeight.com/features/fandango-movies-ratings/
* https://github.com/fivethirtyeight/data/tree/master/fandango
Prepared for Data Bootcamp course at NYU
* https://github.com/NYUDataBootcamp/Materials
* https://github.com/NYUDataBootcamp/Materials/Code/Lab
Written by Dave Backus, January 2016
Created with Python 3.5
"""
import pandas as pd
#import matplotlib.pyplot as plt
url1 = 'https://raw.githubusercontent.com/fivethirtyeight/data/master/'
url2 = 'fandango/fandango_score_comparison.csv'
movie = pd.read_csv(url1+url2)
movie = movie.set_index('FILM')
#movie.describe().T
#%%
# plots
movie.plot.scatter(x='IMDB', y='Fandango_Ratingvalue')
movie.plot.scatter(x='Metacritic', y='Fandango_Ratingvalue')