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:

LiteFrame

See also

lt

Element-wise less-than comparison.

gt

Element-wise greater-than comparison.

le

Element-wise less-than-or-equal comparison.

ge

Element-wise greater-than-or-equal comparison.

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