maxframe.liteframe.LiteFrame.between#
- LiteFrame.between(left, right, inclusive='both')#
Return boolean LiteFrame indicating whether each value is between left and right.
- Parameters:
left (scalar) – Left boundary.
right (scalar) – Right boundary.
inclusive ({"both", "left", "right", "neither"}, default "both") – Include boundaries.
- Returns:
A boolean LiteFrame.
- Return type:
See also
Examples
>>> import maxframe.liteframe as mlf >>> lf = mlf.LiteFrame({'a': [1, 2, 3, 4, 5]}) >>> result = lf.between(2, 4) >>> result.execute() a 0 False 1 True 2 True 3 True 4 False