Skip to content

Commit 00a0865

Browse files
committed
fix: don't parse datetimes on unused columns
1 parent 54970d9 commit 00a0865

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

_delphi_utils_python/delphi_utils/validator/datafetcher.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ def get_geo_signal_combos(data_source, api_key):
132132
meta = pd.DataFrame.from_dict(response["epidata"])
133133
# note: this will fail for signals with weekly data, but currently not supported for validation
134134
meta = meta[meta["time_type"] == "day"]
135-
meta["min_time"] = meta.apply(lambda x: pd.to_datetime(str(x.min_time), format="%Y%m%d"), axis=1)
136-
meta["max_time"] = meta.apply(lambda x: pd.to_datetime(str(x.max_time), format="%Y%m%d"), axis=1)
137-
meta["last_update"] = pd.to_datetime(meta["last_update"], unit="s")
138135

139136
source_meta = meta[meta['data_source'] == data_source]
140137
# Need to convert np.records to tuples so they are hashable and can be used in sets and dicts.

0 commit comments

Comments
 (0)