Skip to content

Commit

Permalink
DOC: Fix title capitalization in documentation files (#32550) (#59972)
Browse files Browse the repository at this point in the history
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 #32550.
  • Loading branch information
steeleelliott03 authored Oct 30, 2024
1 parent 0f94e7b commit 2323b54
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions doc/source/user_guide/cookbook.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ These are some neat pandas ``idioms``
)
df
if-then...
If-then...
**********

An if-then on one column
Expand Down Expand Up @@ -176,7 +176,7 @@ One could hard code:
Selection
---------

Dataframes
DataFrames
**********

The :ref:`indexing <indexing>` docs.
Expand Down Expand Up @@ -1489,7 +1489,7 @@ of the data values:
)
df
Constant series
Constant Series
---------------

To assess if a series has a constant value, we can check if ``series.nunique() <= 1``.
Expand Down
2 changes: 1 addition & 1 deletion doc/source/user_guide/gotchas.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Below is how to check if any of the values are ``True``:
if pd.Series([False, True, False]).any():
print("I am any")
Bitwise boolean
Bitwise Boolean
~~~~~~~~~~~~~~~

Bitwise boolean operators like ``==`` and ``!=`` return a boolean :class:`Series`
Expand Down
6 changes: 3 additions & 3 deletions doc/source/user_guide/groupby.rst
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ this will make an extra copy.
.. _groupby.aggregate.udf:

Aggregation with User-Defined Functions
Aggregation with user-defined functions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

.. versionadded:: 1.1
Expand Down Expand Up @@ -1696,7 +1696,7 @@ introduction <categorical>` and the
dfg.groupby(["A", [0, 0, 0, 1, 1]]).ngroup()
Groupby by indexer to 'resample' data
GroupBy by indexer to 'resample' data
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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.
Expand Down
2 changes: 1 addition & 1 deletion doc/source/user_guide/integer_na.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Reduction and groupby operations such as :meth:`~DataFrame.sum` work as well.
df.sum()
df.groupby("B").A.sum()
Scalar NA Value
Scalar NA value
---------------

:class:`arrays.IntegerArray` uses :attr:`pandas.NA` as its scalar
Expand Down
2 changes: 1 addition & 1 deletion doc/source/user_guide/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5996,7 +5996,7 @@ Full documentation can be found `here <https://pandas-gbq.readthedocs.io/en/late

.. _io.stata:

Stata format
STATA format
------------

.. _io.stata_writer:
Expand Down
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v1.0.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Fixed regressions

.. ---------------------------------------------------------------------------
Indexing with nullable boolean arrays
Indexing with nullable Boolean arrays
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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`)
Expand Down

0 comments on commit 2323b54

Please sign in to comment.