You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
``PeriodIndex`` has its own ``period`` dtype. ``period`` dtype is a
2061
-
pandas extension dtype as the same as timezone aware dtype, ``datetime64[ns, tz]``.
2062
-
2063
-
``period`` dtype is represented with a ``period[freq]``, using :ref:`frequency strings <timeseries.offset_aliases>`.
2064
-
2065
-
.. ipython:: python
2066
-
2067
-
pi = pd.period_range('2016-01-01', periods=3, freq='M')
2068
-
pi
2069
-
2070
-
``period`` dtype can be used in ``.astype(...)``. It allows change ``freq`` of ``PeriodIndex`` as the same as ``.asfreq()`` and convert ``DatetimeIndex`` to ``PeriodIndex`` like ``to_period()``.
0 commit comments