Created
June 29, 2020 14:32
-
-
Save seathief/3114641e67ddd4708f698074162d7ea2 to your computer and use it in GitHub Desktop.
[pandas read_html] pandas syntax for parsing html #pandas
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
from io import StringIO | |
with open('MA.html', 'r') as f: | |
sio = StringIO(f.read()) | |
dfs = pd.read_html(sio) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment