Skip to content

Commit b37e4f5

Browse files
authored
DOC: small whatsnew updates (#18219)
1 parent f68bf25 commit b37e4f5

File tree

2 files changed

+56
-12
lines changed

2 files changed

+56
-12
lines changed

doc/source/api.rst

+44
Original file line numberDiff line numberDiff line change
@@ -1870,8 +1870,52 @@ Methods
18701870
Timedelta.to_timedelta64
18711871
Timedelta.total_seconds
18721872

1873+
.. _api.frequencies:
1874+
1875+
Frequencies
1876+
-----------
1877+
1878+
.. currentmodule:: pandas.tseries.frequencies
1879+
1880+
1881+
.. autosummary::
1882+
:toctree: generated/
1883+
1884+
to_offset
1885+
1886+
.. _api.offsets:
1887+
1888+
Offsets
1889+
-------
1890+
1891+
.. currentmodule:: pandas.tseries.offsets
1892+
1893+
.. autosummary::
1894+
:toctree: generated/
1895+
1896+
DateOffset
1897+
Week
1898+
Day
1899+
Hour
1900+
Minute
1901+
Second
1902+
Milli
1903+
Micro
1904+
Nano
1905+
1906+
.. autosummary::
1907+
:toctree: generated/
1908+
1909+
MonthBegin
1910+
MonthEnd
1911+
QuarterBegin
1912+
QuarterEnd
1913+
YearBegin
1914+
YearEnd
1915+
18731916
Window
18741917
------
1918+
18751919
.. currentmodule:: pandas.core.window
18761920

18771921
Rolling objects are returned by ``.rolling`` calls: :func:`pandas.DataFrame.rolling`, :func:`pandas.Series.rolling`, etc.

doc/source/whatsnew/v0.22.0.txt

+12-12
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ New features
2222
Other Enhancements
2323
^^^^^^^^^^^^^^^^^^
2424

25-
- Better support for ``Dataframe.style.to_excel()`` output with the ``xlsxwriter`` engine. (:issue:`16149`)
26-
- :func:`pd.tseries.frequencies.to_offset()` now accepts leading '+' signs e.g. '+1h'. (:issue:`18171`)
25+
- Better support for :func:`Dataframe.style.to_excel` output with the ``xlsxwriter`` engine. (:issue:`16149`)
26+
- :func:`pandas.tseries.frequencies.to_offset` now accepts leading '+' signs e.g. '+1h'. (:issue:`18171`)
2727
-
2828

2929
.. _whatsnew_0220.api_breaking:
@@ -41,10 +41,10 @@ Other API Changes
4141
^^^^^^^^^^^^^^^^^
4242

4343
- ``NaT`` division with :class:`datetime.timedelta` will now return ``NaN`` instead of raising (:issue:`17876`)
44-
- All-NaN levels in ``MultiIndex`` are now assigned float rather than object dtype, coherently with flat indexes (:issue:`17929`).
45-
- :class:`Timestamp` will no longer silently ignore unused or invalid `tz` or `tzinfo` keyword arguments (:issue:`17690`)
46-
- :class:`Timestamp` will no longer silently ignore invalid `freq` arguments (:issue:`5168`)
47-
- :class:`CacheableOffset` and :class:`WeekDay` are no longer available in the `tseries.offsets` module (:issue:`17830`)
44+
- All-NaN levels in a ``MultiIndex`` are now assigned ``float`` rather than ``object`` dtype, promoting consistency with ``Index`` (:issue:`17929`).
45+
- :class:`Timestamp` will no longer silently ignore unused or invalid ``tz`` or ``tzinfo`` keyword arguments (:issue:`17690`)
46+
- :class:`Timestamp` will no longer silently ignore invalid ``freq`` arguments (:issue:`5168`)
47+
- :class:`CacheableOffset` and :class:`WeekDay` are no longer available in the ``pandas.tseries.offsets`` module (:issue:`17830`)
4848

4949
.. _whatsnew_0220.deprecations:
5050

@@ -69,7 +69,7 @@ Removal of prior version deprecations/changes
6969
Performance Improvements
7070
~~~~~~~~~~~~~~~~~~~~~~~~
7171

72-
- Indexers on Series or DataFrame no longer create a reference cycle (:issue:`17956`)
72+
- Indexers on ``Series`` or ``DataFrame`` no longer create a reference cycle (:issue:`17956`)
7373
-
7474
-
7575

@@ -98,18 +98,18 @@ Conversion
9898
Indexing
9999
^^^^^^^^
100100

101-
- Bug in :func:`PeriodIndex.truncate` which raises ``TypeError`` when ``PeriodIndex`` is monotonic (:issue:`17717`)
102-
- Bug in ``DataFrame.groupby`` where key as tuple in a ``MultiIndex`` were interpreted as a list of keys (:issue:`17979`)
101+
- Bug in :func:`Series.truncate` which raises ``TypeError`` with a monotonic ``PeriodIndex`` (:issue:`17717`)
102+
- Bug in :func:`DataFrame.groupby` where key as tuple in a ``MultiIndex`` were interpreted as a list of keys (:issue:`17979`)
103103
-
104104
-
105105

106106
I/O
107107
^^^
108108

109109
- :func:`read_html` now rewinds seekable IO objects after parse failure, before attempting to parse with a new parser. If a parser errors and the object is non-seekable, an informative error is raised suggesting the use of a different parser (:issue:`17975`)
110-
- Bug in ``pd.read_msgpack()`` with a non existent file is passed in Python 2 (:issue:`15296`)
111-
- Bug in :func:`pd.read_csv` where a ``MultiIndex`` with duplicate columns was not being mangled appropriately (:issue:`18062`)
112-
- Bug in :func:`pd.read_sas` where a file with 0 variables gave an ``AttributeError`` incorrectly. Now it gives an ``EmptyDataError`` (:issue:`18184`)
110+
- Bug in :func:`read_msgpack` with a non existent file is passed in Python 2 (:issue:`15296`)
111+
- Bug in :func:`read_csv` where a ``MultiIndex`` with duplicate columns was not being mangled appropriately (:issue:`18062`)
112+
- Bug in :func:`read_sas` where a file with 0 variables gave an ``AttributeError`` incorrectly. Now it gives an ``EmptyDataError`` (:issue:`18184`)
113113
-
114114
-
115115

0 commit comments

Comments
 (0)