cycquery.ops.ConditionInYearsΒΆ
- class ConditionInYears(timestamp_col, years, not_=False, binarize_col=None)[source]ΒΆ
Bases:
QueryOp
Filter rows based on a timestamp column being in a list of years.
- Parameters:
Examples
>>> ConditionInYears("col1", [2019, 2020])(table) >>> ConditionInYears("col1", 2019)(table) >>> ConditionInYears("col1", 2019, binarize_col="col1_bool")(table)
Methods