class_docstr: Series.str namespace.
class_docstr_tok: ["Series.str","namespace","."]
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
  -------
  Series
      Series of data type :class:`Int64`.
  
  Examples
  --------
  >>> s = pl.Series("bin", ["110", "101", "010", "invalid"])
  >>> s.str.to_integer(base=2, strict=False)
  shape: (4,)
  Series: 'bin' [i64]
  [
          6
          5
          2
          null
  ]
  
  >>> s = pl.Series("hex", ["fa1e", "ff00", "cafe", None])
  >>> s.str.to_integer(base=16)
  shape: (4,)
  Series: 'hex' [i64]
  [
          64030
          65280
          51966
          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","--","--","--","-","Series","Series","of","data","type",":","class",":","`","Int64","`",".","Examples","--","--","--","--",">",">",">","s","=","pl.Series","(","``","bin","''",",","[","``","110","''",",","``","101","''",",","``","010","''",",","``","invalid","''","]",")",">",">",">","s.str.to_integer","(","base=2",",","strict=False",")","shape",":","(","4",",",")","Series",":","'bin","'","[","i64","]","[","6","5","2","null","]",">",">",">","s","=","pl.Series","(","``","hex","''",",","[","``","fa1e","''",",","``","ff00","''",",","``","cafe","''",",","None","]",")",">",">",">","s.str.to_integer","(","base=16",")","shape",":","(","4",",",")","Series",":","'hex","'","[","i64","]","[","64030","65280","51966","null","]"]
code: def to_integer(
      self, *, base: int = 10, strict: bool = True
  ) -> Series:
      """
      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
      -------
      Series
          Series of data type :class:`Int64`.
  
      Examples
      --------
      >>> s = pl.Series("bin", ["110", "101", "010", "invalid"])
      >>> s.str.to_integer(base=2, strict=False)
      shape: (4,)
      Series: 'bin' [i64]
      [
              6
              5
              2
              null
      ]
  
      >>> s = pl.Series("hex", ["fa1e", "ff00", "cafe", None])
      >>> s.str.to_integer(base=16)
      shape: (4,)
      Series: 'hex' [i64]
      [
              64030
              65280
              51966
              null
      ]
  
      """
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from polars.series.utils import expr_dispatch
  from polars.utils.deprecation import deprecate_renamed_function, deprecate_renamed_parameter
label_desc: Use image node_id 40 for calling the StringNameSpace obj's underlying member method code with example usage: obj.to_integer() without return types