XLoc¶
-
class
tollan.utils.slice.
XLoc
(func)[source]¶ Bases:
object
This provides a interface similar to that of pandas
DataFrame.xloc
.The wrapped function shall take an index or slice object and return the sliced entity.
Additional arguments and keyword arguments can be passed through the
__call__
method, however these will be invalidated as soon as the__getitem__
is called.- Parameters
- func: callable
The function that implements the slice logic.
Methods Summary
__call__
(*args, **kwargs)Store kwargs to be passed to the wrapped function.
Methods Documentation