Last active
September 25, 2020 05:40
-
-
Save exy02/95a4d58bb64d579823b2f8348ad3ddfa to your computer and use it in GitHub Desktop.
How to Extract Data from Online Data Visualizations - 2. Data Cleaning _2
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
json_df = pd.DataFrame(json_list,columns=["new"]) | |
json_df = json_df["new"].str.split(",", expand = True) | |
col_names = ['Measure','County','Test Date','Positives','Death Count','Cumulative Positives', | |
'Cumulative Deaths','Moving Average (Cases)','Moving Average (Deaths)'] | |
json_df.columns = col_names |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment