Created
June 22, 2017 19:11
-
-
Save anonymous/ec76e57cf5e5ccb87a6894767b8c8bcc to your computer and use it in GitHub Desktop.
Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import matplotlib.pyplot as plt | |
%matplotlib inline | |
df = pd.read_html('http://www.basketball-reference.com/leaders/pts_career.html') | |
nba_table = df[1][['Player','PTS']].head(20) | |
sorted = nba_table.sort_values(by='PTS',ascending=True) | |
sorted.plot(kind='line',legend=True,title='TOP 10 NBA Career Leaders in Points', style='r') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment