bamboost.index._filtering
Attributes
- Operand=
typing.Union['_Key', 'Operator', str, float, int, datetime.datetime, datetime.timedelta]
Functions
add_operators
(cls)Arguments:
- cls
Classes
_SupportsOperators
_SupportsOperators.__and__
(self, other) -> 'Operator'Arguments:
- other:
Operand
_SupportsOperators.__or__
(self, other) -> 'Operator'Arguments:
- other:
Operand
_SupportsOperators.__pow__
(self, other) -> 'Operator'Arguments:
- other:
Operand
_SupportsOperators.__mod__
(self, other) -> 'Operator'Arguments:
- other:
Operand
_SupportsOperators.__floordiv__
(self, other) -> 'Operator'Arguments:
- other:
Operand
_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
_SupportsOperators15
_SupportsOperators.__lt__()_SupportsOperators.__le__()_SupportsOperators.__eq__()_SupportsOperators.__ne__()_SupportsOperators.__gt__()_SupportsOperators.__ge__()_SupportsOperators.__add__()_SupportsOperators.__sub__()_SupportsOperators.__mul__()_SupportsOperators.__truediv__()_SupportsOperators.__floordiv__()_SupportsOperators.__mod__()_SupportsOperators.__pow__()_SupportsOperators.__or__()_SupportsOperators.__and__()
Operator.__repr__
(self) -> strOperator.evaluate
(self, item) -> boolArguments:
- item:
dict
_Key
_Key
(self, key) -> NoneArguments:
- key:
str
Attributes:
- _value=
bamboost.index._filtering._Key(key)
Bases
_SupportsOperators15
_SupportsOperators.__lt__()_SupportsOperators.__le__()_SupportsOperators.__eq__()_SupportsOperators.__ne__()_SupportsOperators.__gt__()_SupportsOperators.__ge__()_SupportsOperators.__add__()_SupportsOperators.__sub__()_SupportsOperators.__mul__()_SupportsOperators.__truediv__()_SupportsOperators.__floordiv__()_SupportsOperators.__mod__()_SupportsOperators.__pow__()_SupportsOperators.__or__()_SupportsOperators.__and__()
_Key.__repr__
(self) -> strFilter
Filter
(self, *operators) -> NoneFilter applied to a collection.
Arguments:
Attributes:
Filter.__repr__
(self) -> strFilter.__and__
(self, other) -> FilterArguments:
- other:
Filter | None
Filter.apply
(self, df) -> DataFrame | Series | AnyArguments:
- df:
pandas.DataFrame
SortInstruction
SortInstruction
(self, key, ascending=True) -> NoneArguments:
- key:
str - ascending:
bool=True
Attributes:
- key=
bamboost.index._filtering.SortInstruction(key) - ascending=
bamboost.index._filtering.SortInstruction(ascending)
SortInstruction.__repr__
(self) -> strSorter
Sorter
(self, *instructions) -> NoneSorter applied to a collection.
Arguments:
Attributes:
Sorter.__repr__
(self) -> strSorter.__and__
(self, other) -> SorterArguments:
- other:
Sorter | None
Sorter.apply
(self, df) -> DataFrameArguments:
- df:
pandas.DataFrame
Bamboost