Commit b1d1152c authored by Chris Jewell's avatar Chris Jewell
Browse files

Remove redundant JSON/un-JSON transformation.

parent 876ee171
......@@ -53,7 +53,7 @@ class CasesData:
print("Attempting to download...", end="", flush=True)
response = requests.get(url)
content = json.loads(response.content)
df = pd.read_json(json.dumps(content["body"]))
df = pd.DataFrame.from_dict(content["body"])
print("Success", flush=True)
return df
except (requests.ConnectionError, requests.RequestException) as e:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment