class_docstr: Namespace for datetime related expressions.
docstr: Extract the total minutes from a Duration type.
  
  Returns
  -------
  Expr
      Expression of data type :class:`Int64`.
  
  Examples
  --------
  >>> from datetime import datetime
  >>> df = pl.DataFrame(
  ...     {
  ...         "date": pl.datetime_range(
  ...             datetime(2020, 1, 1), datetime(2020, 1, 4), "1d", eager=True
  ...         ),
  ...     }
  ... )
  >>> df.select(
  ...     [
  ...         pl.col("date"),
  ...         pl.col("date").diff().dt.total_minutes().alias("minutes_diff"),
  ...     ]
  ... )
  shape: (4, 2)
  ┌─────────────────────┬──────────────┐
  │ date                ┆ minutes_diff │
  │ ---                 ┆ ---          │
  │ datetime[μs]        ┆ i64          │
  ╞═════════════════════╪══════════════╡
  │ 2020-01-01 00:00:00 ┆ null         │
  │ 2020-01-02 00:00:00 ┆ 1440         │
  │ 2020-01-03 00:00:00 ┆ 1440         │
  │ 2020-01-04 00:00:00 ┆ 1440         │
  └─────────────────────┴──────────────┘
docstr_tok: ["Extract","the","total","minutes","from","a","Duration","type",".","Returns","--","--","--","-","Expr","Expression","of","data","type",":","class",":","`","Int64","`",".","Examples","--","--","--","--",">",">",">","from","datetime","import","datetime",">",">",">","df","=","pl.DataFrame","(","...","{","...","``","date","''",":","pl.datetime_range","(","...","datetime","(","2020",",","1",",","1",")",",","datetime","(","2020",",","1",",","4",")",",","``","1d","''",",","eager=True","...",")",",","...","}","...",")",">",">",">","df.select","(","...","[","...","pl.col","(","``","date","''",")",",","...","pl.col","(","``","date","''",")",".diff","(",")",".dt.total_minutes","(",")",".alias","(","``","minutes_diff","''",")",",","...","]","...",")","shape",":","(","4",",","2",")","\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510","\u2502","date","\u2506","minutes_diff","\u2502","\u2502","--","-","\u2506","--","-","\u2502","\u2502","datetime","[","\u03bcs","]","\u2506","i64","\u2502","\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u256a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2561","\u2502","2020-01-01","00:00:00","\u2506","null","\u2502","\u2502","2020-01-02","00:00:00","\u2506","1440","\u2502","\u2502","2020-01-03","00:00:00","\u2506","1440","\u2502","\u2502","2020-01-04","00:00:00","\u2506","1440","\u2502","\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"]
code: def total_minutes(self) -> Expr:
      """
      Extract the total minutes from a Duration type.
  
      Returns
      -------
      Expr
          Expression of data type :class:`Int64`.
  
      Examples
      --------
      >>> from datetime import datetime
      >>> df = pl.DataFrame(
      ...     {
      ...         "date": pl.datetime_range(
      ...             datetime(2020, 1, 1), datetime(2020, 1, 4), "1d", eager=True
      ...         ),
      ...     }
      ... )
      >>> df.select(
      ...     [
      ...         pl.col("date"),
      ...         pl.col("date").diff().dt.total_minutes().alias("minutes_diff"),
      ...     ]
      ... )
      shape: (4, 2)
      ┌─────────────────────┬──────────────┐
      │ date                ┆ minutes_diff │
      │ ---                 ┆ ---          │
      │ datetime[μs]        ┆ i64          │
      ╞═════════════════════╪══════════════╡
      │ 2020-01-01 00:00:00 ┆ null         │
      │ 2020-01-02 00:00:00 ┆ 1440         │
      │ 2020-01-03 00:00:00 ┆ 1440         │
      │ 2020-01-04 00:00:00 ┆ 1440         │
      └─────────────────────┴──────────────┘
  
      """
      return wrap_expr(self._pyexpr.dt_total_minutes())
  
imports: from __future__ import annotations
  import datetime
  from typing import TYPE_CHECKING
  import polars._reexport
  from polars import functions
  from polars.datatypes import DTYPE_TEMPORAL_UNITS, Date, Int32
  from polars.utils._parse_expr_input import parse_as_expression
  from polars.utils._wrap import wrap_expr
  from polars.utils.convert import _timedelta_to_pl_duration
  from polars.utils.deprecation import deprecate_renamed_function, deprecate_saturating, issue_deprecation_warning, rename_use_earliest_to_ambiguous
label_desc: Use image node_id 33 for calling the ExprDateTimeNameSpace obj's underlying member method code with example usage: obj.total_minutes() and returns: wrap_expr