class_docstr: Namespace for string related expressions.
class_docstr_tok: ["Namespace","for","string","related","expressions","."]
docstr: Convert an String column into an Int64 column with base radix.
  
  Parameters
  ----------
  base
      Positive integer which is the base of the string we are parsing.
      Default: 10.
  strict
      Bool, Default=True will raise any ParseError or overflow as ComputeError.
      False silently convert to Null.
  
  Returns
  -------
  Expr
      Expression of data type :class:`Int64`.
  
  Examples
  --------
  >>> df = pl.DataFrame({"bin": ["110", "101", "010", "invalid"]})
  >>> df.with_columns(parsed=pl.col("bin").str.to_integer(base=2, strict=False))
  shape: (4, 2)
  ┌─────────┬────────┐
  │ bin     ┆ parsed │
  │ ---     ┆ ---    │
  │ str     ┆ i64    │
  ╞═════════╪════════╡
  │ 110     ┆ 6      │
  │ 101     ┆ 5      │
  │ 010     ┆ 2      │
  │ invalid ┆ null   │
  └─────────┴────────┘
  
  >>> df = pl.DataFrame({"hex": ["fa1e", "ff00", "cafe", None]})
  >>> df.with_columns(parsed=pl.col("hex").str.to_integer(base=16, strict=True))
  shape: (4, 2)
  ┌──────┬────────┐
  │ hex  ┆ parsed │
  │ ---  ┆ ---    │
  │ str  ┆ i64    │
  ╞══════╪════════╡
  │ fa1e ┆ 64030  │
  │ ff00 ┆ 65280  │
  │ cafe ┆ 51966  │
  │ null ┆ null   │
  └──────┴────────┘
docstr_tok: ["Convert","an","String","column","into","an","Int64","column","with","base","radix",".","Parameters","--","--","--","--","--","base","Positive","integer","which","is","the","base","of","the","string","we","are","parsing",".","Default",":","10.","strict","Bool",",","Default=True","will","raise","any","ParseError","or","overflow","as","ComputeError",".","False","silently","convert","to","Null",".","Returns","--","--","--","-","Expr","Expression","of","data","type",":","class",":","`","Int64","`",".","Examples","--","--","--","--",">",">",">","df","=","pl.DataFrame","(","{","``","bin","''",":","[","``","110","''",",","``","101","''",",","``","010","''",",","``","invalid","''","]","}",")",">",">",">","df.with_columns","(","parsed=pl.col","(","``","bin","''",")",".str.to_integer","(","base=2",",","strict=False",")",")","shape",":","(","4",",","2",")","\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510","\u2502","bin","\u2506","parsed","\u2502","\u2502","--","-","\u2506","--","-","\u2502","\u2502","str","\u2506","i64","\u2502","\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u256a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2561","\u2502","110","\u2506","6","\u2502","\u2502","101","\u2506","5","\u2502","\u2502","010","\u2506","2","\u2502","\u2502","invalid","\u2506","null","\u2502","\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518",">",">",">","df","=","pl.DataFrame","(","{","``","hex","''",":","[","``","fa1e","''",",","``","ff00","''",",","``","cafe","''",",","None","]","}",")",">",">",">","df.with_columns","(","parsed=pl.col","(","``","hex","''",")",".str.to_integer","(","base=16",",","strict=True",")",")","shape",":","(","4",",","2",")","\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510","\u2502","hex","\u2506","parsed","\u2502","\u2502","--","-","\u2506","--","-","\u2502","\u2502","str","\u2506","i64","\u2502","\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u256a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2561","\u2502","fa1e","\u2506","64030","\u2502","\u2502","ff00","\u2506","65280","\u2502","\u2502","cafe","\u2506","51966","\u2502","\u2502","null","\u2506","null","\u2502","\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"]
code: def to_integer(self, *, base: int = 10, strict: bool = True) -> Expr:
      """
      Convert an String column into an Int64 column with base radix.
  
      Parameters
      ----------
      base
          Positive integer which is the base of the string we are parsing.
          Default: 10.
      strict
          Bool, Default=True will raise any ParseError or overflow as ComputeError.
          False silently convert to Null.
  
      Returns
      -------
      Expr
          Expression of data type :class:`Int64`.
  
      Examples
      --------
      >>> df = pl.DataFrame({"bin": ["110", "101", "010", "invalid"]})
      >>> df.with_columns(parsed=pl.col("bin").str.to_integer(base=2, strict=False))
      shape: (4, 2)
      ┌─────────┬────────┐
      │ bin     ┆ parsed │
      │ ---     ┆ ---    │
      │ str     ┆ i64    │
      ╞═════════╪════════╡
      │ 110     ┆ 6      │
      │ 101     ┆ 5      │
      │ 010     ┆ 2      │
      │ invalid ┆ null   │
      └─────────┴────────┘
  
      >>> df = pl.DataFrame({"hex": ["fa1e", "ff00", "cafe", None]})
      >>> df.with_columns(parsed=pl.col("hex").str.to_integer(base=16, strict=True))
      shape: (4, 2)
      ┌──────┬────────┐
      │ hex  ┆ parsed │
      │ ---  ┆ ---    │
      │ str  ┆ i64    │
      ╞══════╪════════╡
      │ fa1e ┆ 64030  │
      │ ff00 ┆ 65280  │
      │ cafe ┆ 51966  │
      │ null ┆ null   │
      └──────┴────────┘
  
      """
      return wrap_expr(self._pyexpr.str_to_integer(base, strict))
  
imports: from __future__ import annotations
  import warnings
  from typing import TYPE_CHECKING
  import polars._reexport
  from polars import functions
  from polars.datatypes import Date, Datetime, Int32, Time, py_type_to_dtype
  from polars.exceptions import ChronoFormatWarning
  from polars.utils._parse_expr_input import parse_as_expression
  from polars.utils._wrap import wrap_expr
  from polars.utils.deprecation import deprecate_renamed_function, deprecate_renamed_parameter, rename_use_earliest_to_ambiguous
  from polars.utils.various import find_stacklevel
label_desc: Use image node_id 40 for calling the ExprStringNameSpace obj's underlying member method code with example usage: obj.to_integer() and returns: wrap_expr