Skip to content

Commit

Permalink
Use pandas to_datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
chinandrew committed Oct 9, 2020
1 parent da81a2b commit cd93f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python-packages/covidcast-py/covidcast/covidcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def metadata() -> pd.DataFrame:
meta_df = pd.DataFrame.from_dict(meta["epidata"])
meta_df["min_time"] = pd.to_datetime(meta_df["min_time"], format="%Y%m%d")
meta_df["max_time"] = pd.to_datetime(meta_df["max_time"], format="%Y%m%d")
meta_df["last_update"] = meta_df.last_update.map(datetime.utcfromtimestamp)
meta_df["last_update"] = pd.to_datetime(meta_df["last_update"], unit="s")
return meta_df


Expand Down

0 comments on commit cd93f81

Please sign in to comment.