polars.Series.is_datelike#

Series.is_datelike() bool[source]#

Check if this Series datatype is datelike.

Examples

>>> from datetime import date
>>> s = pl.Series([date(2021, 1, 1), date(2021, 1, 2), date(2021, 1, 3)])
>>> s.is_datelike()
True