Skip to content

Instantly share code, notes, and snippets.

Created June 22, 2017 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ec76e57cf5e5ccb87a6894767b8c8bcc to your computer and use it in GitHub Desktop.
Save anonymous/ec76e57cf5e5ccb87a6894767b8c8bcc to your computer and use it in GitHub Desktop.
Test
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