polars.Series.dt.total_minutes#
- Series.dt.total_minutes() Series [source]#
Extract the total minutes from a Duration type.
- Returns:
- Series
Series of data type
Int64
.
Examples
>>> from datetime import datetime >>> date = pl.datetime_range( ... datetime(2020, 1, 1), datetime(2020, 1, 4), "1d", eager=True ... ) >>> date shape: (4,) Series: 'datetime' [datetime[μs]] [ 2020-01-01 00:00:00 2020-01-02 00:00:00 2020-01-03 00:00:00 2020-01-04 00:00:00 ] >>> date.diff().dt.total_minutes() shape: (4,) Series: 'datetime' [i64] [ null 1440 1440 1440 ]