Please note, this is a STATIC archive of website www.w3resource.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
w3resource

Pandas DataFrame: lt() function

DataFrame - lt() function

The lt() function returns less than of series and other, element-wise (binary operator lt).

Among flexible wrappers (eq, ne, le, lt, ge, gt) to comparison operators.

Equivalent to ==, =!, <=, <, >=, > with support to choose axis (rows or columns) and level for comparison.

Syntax:

DataFrame.lt(self, other, axis='columns', level=None)

Parameters:

Name Description Type/Default Value Required / Optional
other    

Any single or multiple element data structure, or list-like object.

scalar, sequence, Series, or DataFrame Required
axis  Whether to compare by the index (0 or ‘index’) or columns (1 or ‘columns’). {0 or ‘index’, 1 or ‘columns’}
Default Value: ‘columns’
Required
level  Broadcast across a level, matching Index values on the passed MultiIndex level. int or label Required

Returns: DataFrame of bool Result of the comparison.

Notes:

Mismatched indices will be unioned together. NaN values are considered different (i.e. NaN != NaN).

Example:


Download the Pandas DataFrame Notebooks from here.

Previous: DataFrame - rpow() function
Next: DataFrame - gt() function