Skip to content

pd.Series.dt.normalize

Link to Pandas documentation

pandas.Series.dt.normalize()

Note

Input must be a Series of datetime64 data.

Example Usage

>>> @bodo.jit
... def f(S):
...     return S.dt.normalize()
>>> S = pd.Series(pd.date_range(start='1/1/2022', end='1/10/2022', periods=30))
>>> f(S)
0    2022-01-01
1    2022-01-01
2    2022-01-01
3    2022-01-01
4    2022-01-02
5    2022-01-02
6    2022-01-02
7    2022-01-03
8    2022-01-03
9    2022-01-03
10   2022-01-04
11   2022-01-04
12   2022-01-04
13   2022-01-05
14   2022-01-05
15   2022-01-05
16   2022-01-05
17   2022-01-06
18   2022-01-06
19   2022-01-06
20   2022-01-07
21   2022-01-07
22   2022-01-07
23   2022-01-08
24   2022-01-08
25   2022-01-08
26   2022-01-09
27   2022-01-09
28   2022-01-09
29   2022-01-10
dtype: datetime64[ns]