Skip to content

Instantly share code, notes, and snippets.

@StephenFordham
Created April 20, 2019 21:09
Show Gist options
  • Save StephenFordham/69b5cd554da4a3c30acc1c527a7f2a51 to your computer and use it in GitHub Desktop.
Save StephenFordham/69b5cd554da4a3c30acc1c527a7f2a51 to your computer and use it in GitHub Desktop.
parse_html
import pandas as pd
prem_table = pd.read_html('https://www.bbc.co.uk/sport/football/premier-league/table')
Premier_table = prem_table[0]
print(len(prem_table))
print(type(prem_table))
print(Premier_table.head(6))
# Output
1
<class 'list'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment