polars.Series.dt.min#

Series.dt.min() dt.date | dt.datetime | dt.timedelta | None[source]#

Return minimum as python DateTime.

Examples

>>> from datetime import datetime
>>> date = pl.date_range(
...     datetime(2001, 1, 1), datetime(2001, 1, 3), "1d", eager=True
... )
>>> date
shape: (3,)
Series: 'date' [datetime[μs]]
[
        2001-01-01 00:00:00
        2001-01-02 00:00:00
        2001-01-03 00:00:00
]
>>> date.dt.min()
datetime.datetime(2001, 1, 1, 0, 0)