Skip to content

Power Series

Source code

Description

Method equivalent of power operator series ^ other.

Usage

<Series>$pow(exponent)

Arguments

exponent Series like object of numeric. Converted to Series by as_polars_series() in this method.

Value

Series

See Also

  • Arithmetic operators

Examples

library("polars")

s = as_polars_series(1:4, name = "foo")

s$pow(3L)
#> polars Series: shape: (4,)
#> Series: 'foo' [i32]
#> [
#>  1
#>  8
#>  27
#>  64
#> ]