class_docstr: Series.dt namespace.
class_docstr_tok: ["Series.dt","namespace","."]
docstr: Extract the total days from a Duration type.
  
  Returns
  -------
  Series
      Series of data type :class:`Int64`.
  
  Examples
  --------
  >>> from datetime import datetime
  >>> date = pl.datetime_range(
  ...     datetime(2020, 3, 1), datetime(2020, 5, 1), "1mo", eager=True
  ... ).alias("datetime")
  >>> date
  shape: (3,)
  Series: 'datetime' [datetime[μs]]
  [
          2020-03-01 00:00:00
          2020-04-01 00:00:00
          2020-05-01 00:00:00
  ]
  >>> date.diff().dt.total_days()
  shape: (3,)
  Series: 'datetime' [i64]
  [
          null
          31
          30
  ]
code: def total_days(self) -> Series:
      """
      Extract the total days from a Duration type.
  
      Returns
      -------
      Series
          Series of data type :class:`Int64`.
  
      Examples
      --------
      >>> from datetime import datetime
      >>> date = pl.datetime_range(
      ...     datetime(2020, 3, 1), datetime(2020, 5, 1), "1mo", eager=True
      ... ).alias("datetime")
      >>> date
      shape: (3,)
      Series: 'datetime' [datetime[μs]]
      [
              2020-03-01 00:00:00
              2020-04-01 00:00:00
              2020-05-01 00:00:00
      ]
      >>> date.diff().dt.total_days()
      shape: (3,)
      Series: 'datetime' [i64]
      [
              null
              31
              30
      ]
  
      """
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from polars.datatypes import Date
  from polars.series.utils import expr_dispatch
  from polars.utils._wrap import wrap_s
  from polars.utils.convert import _to_python_date, _to_python_datetime
  from polars.utils.deprecation import deprecate_renamed_function
label_desc: Use image node_id 33 for calling the DateTimeNameSpace obj's underlying member method code with example usage: obj.total_days() without return types