sensortoolkit.qc._invalidate.invalidate_period
- invalidate_period(df, param, bdate, edate)[source]
Invalidate data by manually indicating a period of time.
Data within the indicated start and end timestamps will be invaldiated (i.e., values set np.nan) and the parameter QAQC column will indicate data have been modified by flagging as type #2
# TODO: Come back to flagging number scheme
- Parameters
df (pandas DataFrame) – Dataset containing timeseries data that will be invalidated.
param (str) – The name of the parmeter to invalidate.
bdate (str) – The beginning timestamp for data invalidation in ‘YYYY-MM-DD HH:MM:SS’ format.
edate (str) – The ending timestamp for data invalidation in ‘YYYY-MM-DD HH:MM:SS’ format.
- Returns
Modified dataset with invalidated data.
- Return type
df (pandas DataFrame)