bigframes.pandas.api.typing.DatetimeMethods.date#

propertyDatetimeMethods.date:Series#

Returns a Series with the date part of Timestamps without time andtimezone information.

Warning

This method returns a Series whereas pandas returnsa numpy array.

Examples:

>>>importbigframes.pandasasbpd>>>s=bpd.Series(["1/1/2020 10:00:00+00:00","2/1/2020 11:00:00+00:00"])>>>s=bpd.to_datetime(s,utc=True,format="%d/%m/%Y %H:%M:%S%Ez")>>>s0    2020-01-01 10:00:00+00:001    2020-01-02 11:00:00+00:00dtype: timestamp[us, tz=UTC][pyarrow]>>>s.dt.date0   2020-01-011   2020-01-02dtype: date32[day][pyarrow]

This Page