You are viewing documentation about an older version (1.21.0). View latest version

modin.pandas.Series.dt.date¶

Series.dt.date[source]¶

Returns a series of python datetime.date objects.

Namely, the date part of Timestamps without time and timezone information.

Examples

For Series:

>>> s = pd.Series(["2020-01-01 01:23:00", "2020-02-01 12:11:05"])
>>> s = pd.to_datetime(s)
>>> s
0   2020-01-01 01:23:00
1   2020-02-01 12:11:05
dtype: datetime64[ns]
>>> s.dt.date
0    2020-01-01
1    2020-02-01
dtype: object
Copy