Skip to content

Commit 9c566a6

Browse files
authored
DOC: Fix heading capitalization in doc/source/whatsnew (#35368)
1 parent 71b5650 commit 9c566a6

File tree

5 files changed

+23
-21
lines changed

5 files changed

+23
-21
lines changed

doc/source/whatsnew/v0.22.0.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _whatsnew_0220:
22

3-
v0.22.0 (December 29, 2017)
4-
---------------------------
3+
Version 0.22.0 (December 29, 2017)
4+
----------------------------------
55

66
{{ header }}
77

@@ -96,7 +96,7 @@ returning ``1`` instead.
9696
These changes affect :meth:`DataFrame.sum` and :meth:`DataFrame.prod` as well.
9797
Finally, a few less obvious places in pandas are affected by this change.
9898

99-
Grouping by a categorical
99+
Grouping by a Categorical
100100
^^^^^^^^^^^^^^^^^^^^^^^^^
101101

102102
Grouping by a ``Categorical`` and summing now returns ``0`` instead of

doc/source/whatsnew/v0.23.0.rst

+11-11
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ Please note that the string `index` is not supported with the round trip format,
8686
.. _whatsnew_0230.enhancements.assign_dependent:
8787

8888

89-
``.assign()`` accepts dependent arguments
90-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
89+
Method ``.assign()`` accepts dependent arguments
90+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9191

9292
The :func:`DataFrame.assign` now accepts dependent keyword arguments for python version later than 3.6 (see also `PEP 468
9393
<https://www.python.org/dev/peps/pep-0468/>`_). Later keyword arguments may now refer to earlier ones if the argument is a callable. See the
@@ -244,7 +244,7 @@ documentation. If you build an extension array, publicize it on our
244244

245245
.. _whatsnew_0230.enhancements.categorical_grouping:
246246

247-
New ``observed`` keyword for excluding unobserved categories in ``groupby``
247+
New ``observed`` keyword for excluding unobserved categories in ``GroupBy``
248248
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
249249

250250
Grouping by a categorical includes the unobserved categories in the output.
@@ -360,8 +360,8 @@ Fill all consecutive outside values in both directions
360360
361361
.. _whatsnew_0210.enhancements.get_dummies_dtype:
362362

363-
``get_dummies`` now supports ``dtype`` argument
364-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
363+
Function ``get_dummies`` now supports ``dtype`` argument
364+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
365365

366366
The :func:`get_dummies` now accepts a ``dtype`` argument, which specifies a dtype for the new columns. The default remains uint8. (:issue:`18330`)
367367

@@ -388,8 +388,8 @@ See the :ref:`documentation here <timedeltas.mod_divmod>`. (:issue:`19365`)
388388
389389
.. _whatsnew_0230.enhancements.ran_inf:
390390

391-
``.rank()`` handles ``inf`` values when ``NaN`` are present
392-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
391+
Method ``.rank()`` handles ``inf`` values when ``NaN`` are present
392+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
393393

394394
In previous versions, ``.rank()`` would assign ``inf`` elements ``NaN`` as their ranks. Now ranks are calculated properly. (:issue:`6945`)
395395

@@ -587,7 +587,7 @@ If installed, we now require:
587587

588588
.. _whatsnew_0230.api_breaking.dict_insertion_order:
589589

590-
Instantiation from dicts preserves dict insertion order for python 3.6+
590+
Instantiation from dicts preserves dict insertion order for Python 3.6+
591591
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
592592

593593
Until Python 3.6, dicts in Python had no formally defined ordering. For Python
@@ -1365,8 +1365,8 @@ MultiIndex
13651365
- Bug in indexing where nested indexers having only numpy arrays are handled incorrectly (:issue:`19686`)
13661366

13671367

1368-
I/O
1369-
^^^
1368+
IO
1369+
^^
13701370

13711371
- :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`)
13721372
- :meth:`DataFrame.to_html` now has an option to add an id to the leading `<table>` tag (:issue:`8496`)
@@ -1403,7 +1403,7 @@ Plotting
14031403
- :func:`DataFrame.plot` now supports multiple columns to the ``y`` argument (:issue:`19699`)
14041404

14051405

1406-
Groupby/resample/rolling
1406+
GroupBy/resample/rolling
14071407
^^^^^^^^^^^^^^^^^^^^^^^^
14081408

14091409
- Bug when grouping by a single column and aggregating with a class like ``list`` or ``tuple`` (:issue:`18079`)

doc/source/whatsnew/v0.24.0.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ For earlier versions this can be done using the following.
277277
278278
.. _whatsnew_0240.enhancements.read_html:
279279

280-
``read_html`` Enhancements
281-
^^^^^^^^^^^^^^^^^^^^^^^^^^
280+
Function ``read_html`` enhancements
281+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
282282

283283
:func:`read_html` previously ignored ``colspan`` and ``rowspan`` attributes.
284284
Now it understands them, treating them as sequences of cells with the same
@@ -1371,7 +1371,7 @@ the object's ``freq`` attribute (:issue:`21939`, :issue:`23878`).
13711371
13721372
.. _whatsnew_0240.deprecations.integer_tz:
13731373

1374-
Passing integer data and a timezone to datetimeindex
1374+
Passing integer data and a timezone to DatetimeIndex
13751375
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13761376

13771377
The behavior of :class:`DatetimeIndex` when passed integer data and
@@ -1769,8 +1769,8 @@ MultiIndex
17691769
- :class:`MultiIndex` has gained the :meth:`MultiIndex.from_frame`, it allows constructing a :class:`MultiIndex` object from a :class:`DataFrame` (:issue:`22420`)
17701770
- Fix ``TypeError`` in Python 3 when creating :class:`MultiIndex` in which some levels have mixed types, e.g. when some labels are tuples (:issue:`15457`)
17711771

1772-
I/O
1773-
^^^
1772+
IO
1773+
^^
17741774

17751775
- Bug in :func:`read_csv` in which a column specified with ``CategoricalDtype`` of boolean categories was not being correctly coerced from string values to booleans (:issue:`20498`)
17761776
- Bug in :func:`read_csv` in which unicode column names were not being properly recognized with Python 2.x (:issue:`13253`)
@@ -1827,7 +1827,7 @@ Plotting
18271827
- Bug in :func:`DataFrame.plot.bar` caused bars to use multiple colors instead of a single one (:issue:`20585`)
18281828
- Bug in validating color parameter caused extra color to be appended to the given color array. This happened to multiple plotting functions using matplotlib. (:issue:`20726`)
18291829

1830-
Groupby/resample/rolling
1830+
GroupBy/resample/rolling
18311831
^^^^^^^^^^^^^^^^^^^^^^^^
18321832

18331833
- Bug in :func:`pandas.core.window.Rolling.min` and :func:`pandas.core.window.Rolling.max` with ``closed='left'``, a datetime-like index and only one entry in the series leading to segfault (:issue:`24718`)

doc/source/whatsnew/v0.24.2.rst

-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ Bug fixes
5151

5252
- Bug where calling :meth:`Series.replace` on categorical data could return a ``Series`` with incorrect dimensions (:issue:`24971`)
5353
-
54-
-
5554

5655
**Reshaping**
5756

scripts/validate_rst_title_capitalization.py

+3
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@
138138
"CategoricalDtype",
139139
"UTC",
140140
"Panel",
141+
"False",
142+
"Styler",
143+
"os",
141144
}
142145

143146
CAP_EXCEPTIONS_DICT = {word.lower(): word for word in CAPITALIZATION_EXCEPTIONS}

0 commit comments

Comments
 (0)