TimeFrame.qc_check#
- TimeFrame.qc_check(check, column_name, observation_interval=None, flag_params=None, **kwargs)[source]#
- Overloads:
self, check (str | Type[QCCheck] | QCCheck), column_name (str), observation_interval (tuple[datetime, datetime | None] | None), flag_params (None), kwargs → pl.Series
self, check (str | Type[QCCheck] | QCCheck), column_name (str), observation_interval (tuple[datetime, datetime | None] | None), flag_params (tuple[str, str | int]), kwargs → TimeFrame
- Parameters:
check (str | Type[QCCheck] | QCCheck)
column_name (str)
observation_interval (tuple[datetime, datetime | None] | None)
flag_params (tuple[str, str | int] | None)
- Return type:
TimeFrame | Series
Apply a quality control check to the TimeFrame.
- Parameters:
check (
Union[str,Type[QCCheck],QCCheck]) – The QC check to apply.column_name (
str) – The column to perform the check on.observation_interval (
tuple[datetime,datetime|None] |None) – Optional time interval to limit the check to.flag_params (
tuple[str,str|int] |None) – Tuple of (flag column name [str], flag value [str | int]. If provided, add given flag value to the flag column where the QC check returnsTrue. If not provided, the result of the QC check is returned as a boolean series.**kwargs – Parameters specific to the check type.
- Returns:
Result of the QC check, either as a boolean Series or added to the TimeFrame dataframe
- Return type:
TimeFrame | Series