Operators#

Polars supports native Python operators for all common operations; many of these operators are also available as methods on the Series class.

Comparison#

Series.eq(other)

Method equivalent of operator expression series == other.

Series.eq_missing(other)

Method equivalent of equality operator series == other where None == None.

Series.ge(other)

Method equivalent of operator expression series >= other.

Series.gt(other)

Method equivalent of operator expression series > other.

Series.le(other)

Method equivalent of operator expression series <= other.

Series.lt(other)

Method equivalent of operator expression series < other.

Series.ne(other)

Method equivalent of operator expression series != other.

Series.ne_missing(other)

Method equivalent of equality operator series != other where None == None.

Numeric#

Series.pow(exponent)

Raise to the power of the given exponent.