Created
April 20, 2019 21:09
-
-
Save StephenFordham/69b5cd554da4a3c30acc1c527a7f2a51 to your computer and use it in GitHub Desktop.
parse_html
This file contains hidden or 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 | |
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