sensortoolkit.ingest._standard_ingest.apply_strptime
- apply_strptime(dt, time_format)[source]
Wrapper for adding exception catching to
datetime.strptime
If
datetime.strptime
encounters a value it cannot encode into time-like form, the value is ignored.- Parameters
dt (pandas Series) – An array of timestamp entries.
time_format (str) – The expected format for timestamps.
- Returns
A time-casted timestamp value.
- Return type
dt (pandas Series)