modin.pandas.Series.dt.date¶
- Series.dt.date[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.21.0/../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/modin/pandas/series_utils.py#L573-L575)¶
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