bamboost.index._filtering
Attributes
- Operand=
typing.Union['_Key', 'Operator', str, float, int]
Functions
add_operators
(cls)
Arguments:
- cls
Classes
_SupportsOperators
_SupportsOperators.__truediv__
(self, other) -> 'Operator'
Arguments:
- other:
Operand
_SupportsOperators.__mul__
(self, other) -> 'Operator'
Arguments:
- other:
Operand
_SupportsOperators.__sub__
(self, other) -> 'Operator'
Arguments:
- other:
Operand
_SupportsOperators.__add__
(self, other) -> 'Operator'
Arguments:
- other:
Operand
_SupportsOperators.__ge__
(self, other) -> 'Operator'
Arguments:
- other:
Operand
_SupportsOperators.__gt__
(self, other) -> 'Operator'
Arguments:
- other:
Operand
_SupportsOperators.__ne__
(self, other) -> 'Operator'
Arguments:
- other:
Operand
_SupportsOperators.__eq__
(self, other) -> 'Operator'
Arguments:
- other:
Operand
_SupportsOperators.__le__
(self, other) -> 'Operator'
Arguments:
- other:
Operand
_SupportsOperators.__lt__
(self, other) -> 'Operator'
Arguments:
- other:
Operand
Operator
Operator
(self, op, a, b=None)
Arguments:
- op
- a
- b=
None
Attributes:
- _op=
bamboost.index._filtering.Operator(op)
- _a=
bamboost.index._filtering.Operator(a)
- _b=
bamboost.index._filtering.Operator(b)
Bases
Operator.__repr__
(self) -> str
Operator.evaluate
(self, item) -> bool
Arguments:
- item:
dict
_Key
_Key
(self, key) -> None
Arguments:
- key:
str
Attributes:
- _value=
bamboost.index._filtering._Key(key)
Bases
_Key.__repr__
(self) -> str
Filter
Filter
(self, *operators) -> None
Filter applied to a collection.
Arguments:
Attributes:
Filter.__repr__
(self) -> str
Filter.__and__
(self, other) -> Filter
Arguments:
- other:
Filter | None
Filter.apply
(self, df) -> DataFrame | Series | Any
Arguments:
- df:
pandas.DataFrame