polars.Series.str.parse_int#

Series.str.parse_int(base: int | None = None, *, strict: bool = True) Series[source]#

Parse integers with base radix from strings.

Deprecated since version 0.19.14: This method has been renamed to to_integer().

Parameters:
base

Positive integer which is the base of the string we are parsing.

strict

Bool, Default=True will raise any ParseError or overflow as ComputeError. False silently convert to Null.