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
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.23.0.txt
+3-2
Original file line number
Diff line number
Diff line change
@@ -450,6 +450,7 @@ Other Enhancements
450
450
- Updated :meth:`DataFrame.to_gbq` and :meth:`pandas.read_gbq` signature and documentation to reflect changes from
451
451
the Pandas-GBQ library version 0.4.0. Adds intersphinx mapping to Pandas-GBQ
452
452
library. (:issue:`20564`)
453
+
- :meth:`DatetimeIndex.asfreq` and :meth:`TimedeltaIndex.asfreq` are now available for setting the ``.freq`` attribute (:issue:`20678`)
453
454
454
455
.. _whatsnew_0230.api_breaking:
455
456
@@ -889,9 +890,9 @@ Deprecations
889
890
- The ``data``, ``base``, ``strides``, ``flags`` and ``itemsize`` properties
890
891
of the ``Series`` and ``Index`` classes have been deprecated and will be
891
892
removed in a future version (:issue:`20419`).
892
-
- ``DatetimeIndex.offset`` is deprecated. Use ``DatetimeIndex.freq`` instead (:issue:`20716`)
893
+
- ``DatetimeIndex.offset`` is deprecated. Use meth:`DatetimeIndex.asfreq` instead (:issue:`20716`)
893
894
- ``Index.get_duplicates()`` is deprecated and will be removed in a future version (:issue:`20239`)
894
-
- Setting ``PeriodIndex.freq`` is deprecated. Use :meth:`PeriodIndex.asfreq` instead (:issue:`20678`)
895
+
- Setting the ``.freq`` attribute is deprecated for :class:`DatetimeIndex`, :class:`TimedeltaIndex`, and :class:`PeriodIndex`. Use the associated ``.asfreq()`` method instead (:issue:`20678`)
0 commit comments