There is dt which has
date
:>>> import pandas as pd >>> df = pd.DataFrame(pd.date_range("2021-01-01", periods=3, freq="s")) >>> df 0 0 2021-01-01 00:00:00 1 2021-01-01 00:00:01 2 2021-01-01 00:00:02 >>> df[0].dt.date 0 2021-01-01 1 2021-01-01 2 2021-01-01 Name: 0, dtype: object >>> df[0].dt.year 0 2021 1 2021 2 2021 Name: 0, dtype: int64 >>> df[0].dt.day 0 1 1 1 2 1 Name: 0, dtype: int64
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.