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