polars.Expr.str.parse_int#
- Expr.str.parse_int(base: int | None = None, *, strict: bool = True) Expr [source]#
Parse integers with base radix from strings.
ParseError/Overflows become Nulls.
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.