def le(self, other: Any) -> 'DataFrame':
    "\n        Compare if the current value is less than or equal to the other.\n\n        >>> df = ps.DataFrame({'a': [1, 2, 3, 4],\n        ...                    'b': [1, np.nan, 1, np.nan]},\n        ...                   index=['a', 'b', 'c', 'd'], columns=['a', 'b'])\n\n        >>> df.le(2)\n               a      b\n        a   True   True\n        b   True  False\n        c  False   True\n        d  False  False\n        "
    return (self <= other)
Compare if the current value is less than or equal to the other.

>>> df = ps.DataFrame({'a': [1, 2, 3, 4],
...                    'b': [1, np.nan, 1, np.nan]},
...                   index=['a', 'b', 'c', 'd'], columns=['a', 'b'])

>>> df.le(2)
       a      b
a   True   True
b   True  False
c  False   True
d  False  False
def le(self, other: Any) -> 'DataFrame':
    "\n        Compare if the current value is less than or equal to the other.\n\n        >>> df = ps.DataFrame({'a': [1, 2, 3, 4],\n        ...                    'b': [1, np.nan, 1, np.nan]},\n        ...                   index=['a', 'b', 'c', 'd'], columns=['a', 'b'])\n\n        >>> df.le(2)\n               a      b\n        a   True   True\n        b   True  False\n        c  False   True\n        d  False  False\n        "
    return (self <= other)