maxframe.liteframe.LiteFrame.gt#

LiteFrame.gt(other)#

Element-wise greater-than comparison.

Bound to the > operator (__gt__), so lf > other is equivalent to lf.gt(other) for non-LiteFrame other.

Parameters:

other (scalar, LiteFrame, or LiteFrame column expression) – Value or LiteFrame to compare against.

Returns:

Lazy boolean LiteFrame indicating where elements are greater than other.

Return type:

LiteFrame

See also

ge

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

lt

Element-wise less-than comparison.

Examples

>>> import maxframe.liteframe as mlf
>>> lf = mlf.LiteFrame({'a': [1, 2, 3]})
>>> result = lf.gt(2)
>>> result.execute()
       a
0  False
1  False
2   True

Using the > operator:

>>> result = lf > 2
>>> result.execute()
       a
0  False
1  False
2   True