Skip to content

Commit 2323b54

Browse files
DOC: Fix title capitalization in documentation files (pandas-dev#32550) (pandas-dev#59972)
Corrected title capitalization in various .rst files to match the standard of capitalizing only the first word, unless a term like DataFrame or Series is involved. Ran the script to find and correct heading issues in the following files: - doc/source/user_guide/timedeltas.rst - doc/source/whatsnew/v0.7.0.rst - doc/source/whatsnew/v0.23.4.rst - (… and so on) Fixes part of issue pandas-dev#32550.
1 parent 0f94e7b commit 2323b54

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

doc/source/user_guide/cookbook.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ These are some neat pandas ``idioms``
3535
)
3636
df
3737
38-
if-then...
38+
If-then...
3939
**********
4040

4141
An if-then on one column
@@ -176,7 +176,7 @@ One could hard code:
176176
Selection
177177
---------
178178

179-
Dataframes
179+
DataFrames
180180
**********
181181

182182
The :ref:`indexing <indexing>` docs.
@@ -1489,7 +1489,7 @@ of the data values:
14891489
)
14901490
df
14911491
1492-
Constant series
1492+
Constant Series
14931493
---------------
14941494

14951495
To assess if a series has a constant value, we can check if ``series.nunique() <= 1``.

doc/source/user_guide/gotchas.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Below is how to check if any of the values are ``True``:
121121
if pd.Series([False, True, False]).any():
122122
print("I am any")
123123
124-
Bitwise boolean
124+
Bitwise Boolean
125125
~~~~~~~~~~~~~~~
126126

127127
Bitwise boolean operators like ``==`` and ``!=`` return a boolean :class:`Series`

doc/source/user_guide/groupby.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ this will make an extra copy.
618618
619619
.. _groupby.aggregate.udf:
620620

621-
Aggregation with User-Defined Functions
621+
Aggregation with user-defined functions
622622
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
623623

624624
Users can also provide their own User-Defined Functions (UDFs) for custom aggregations.
@@ -1261,7 +1261,7 @@ with
12611261
df.groupby("A", group_keys=False).apply(lambda x: x, include_groups=False)
12621262
12631263
1264-
Numba Accelerated Routines
1264+
Numba accelerated routines
12651265
--------------------------
12661266

12671267
.. versionadded:: 1.1
@@ -1696,7 +1696,7 @@ introduction <categorical>` and the
16961696
16971697
dfg.groupby(["A", [0, 0, 0, 1, 1]]).ngroup()
16981698
1699-
Groupby by indexer to 'resample' data
1699+
GroupBy by indexer to 'resample' data
17001700
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17011701

17021702
Resampling produces new hypothetical samples (resamples) from already existing observed data or from a model that generates data. These new samples are similar to the pre-existing samples.

doc/source/user_guide/integer_na.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Reduction and groupby operations such as :meth:`~DataFrame.sum` work as well.
147147
df.sum()
148148
df.groupby("B").A.sum()
149149
150-
Scalar NA Value
150+
Scalar NA value
151151
---------------
152152

153153
:class:`arrays.IntegerArray` uses :attr:`pandas.NA` as its scalar

doc/source/user_guide/io.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -5996,7 +5996,7 @@ Full documentation can be found `here <https://pandas-gbq.readthedocs.io/en/late
59965996

59975997
.. _io.stata:
59985998

5999-
Stata format
5999+
STATA format
60006000
------------
60016001

60026002
.. _io.stata_writer:

doc/source/whatsnew/v1.0.2.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Fixed regressions
4747

4848
.. ---------------------------------------------------------------------------
4949
50-
Indexing with nullable boolean arrays
50+
Indexing with nullable Boolean arrays
5151
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5252

5353
Previously indexing with a nullable Boolean array containing ``NA`` would raise a ``ValueError``, however this is now permitted with ``NA`` being treated as ``False``. (:issue:`31503`)

0 commit comments

Comments
 (0)