cycquery.ops.ConditionGreaterThanΒΆ
- class ConditionGreaterThan(col, value, equal=False, not_=False, binarize_col=None, **cond_kwargs)[source]ΒΆ
Bases:
QueryOp
Filter rows based on greater than (or equal), to some value.
- Parameters:
col (
str
) β Column name on which to condition.value (
Any
) β Value greater than.equal (
bool
) β Include equality to the value.not β Take negation of condition.
binarize_col (
Optional
[str
]) β If specified, create a Boolean column of name binarize_col instead of filtering.**cond_kwargs (
Any
) β Optional keyword arguments for processing the condition.
Examples
>>> ConditionGreaterThan("col1", 1)(table) >>> ConditionGreaterThan("col1", 1, binarize_col="col1_bool")(table)
Methods