Skip to content

Commit f3859cb

Browse files
authored
DOC: Fix capitalization of the word pandas in the docs (#32439)
1 parent bb4395e commit f3859cb

8 files changed

+58
-58
lines changed

doc/source/development/code_style.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ Patterns
2121
foo.__class__
2222
-------------
2323

24-
*pandas* uses 'type(foo)' instead 'foo.__class__' as it makes the code more
25-
readable.
2624

25+
pandas uses 'type(foo)' instead 'foo.__class__' as it is making the code more
26+
readable.
2727
For example:
2828

2929
**Good:**
@@ -50,7 +50,7 @@ Concatenated strings
5050
f-strings
5151
~~~~~~~~~
5252

53-
*pandas* uses f-strings formatting instead of '%' and '.format()' string formatters.
53+
pandas uses f-strings formatting instead of '%' and '.format()' string formatters.
5454

5555
The convention of using f-strings on a string that is concatenated over several lines,
5656
is to prefix only the lines containing values which need to be interpreted.
@@ -114,7 +114,7 @@ For example:
114114
Representation function (aka 'repr()')
115115
--------------------------------------
116116

117-
*pandas* uses 'repr()' instead of '%r' and '!r'.
117+
pandas uses 'repr()' instead of '%r' and '!r'.
118118

119119
The use of 'repr()' will only happen when the value is not an obvious string.
120120

doc/source/development/contributing.rst

+34-34
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Feel free to ask questions on the `mailing list
5353
Bug reports and enhancement requests
5454
====================================
5555

56-
Bug reports are an important part of making *pandas* more stable. Having a complete bug report
56+
Bug reports are an important part of making pandas more stable. Having a complete bug report
5757
will allow others to reproduce the bug and provide insight into fixing. See
5858
`this stackoverflow article <https://stackoverflow.com/help/mcve>`_ and
5959
`this blogpost <https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports>`_
@@ -75,29 +75,29 @@ Bug reports must:
7575
...
7676
```
7777

78-
#. Include the full version string of *pandas* and its dependencies. You can use the built-in function::
78+
#. Include the full version string of pandas and its dependencies. You can use the built-in function::
7979

8080
>>> import pandas as pd
8181
>>> pd.show_versions()
8282

8383
#. Explain why the current behavior is wrong/not desired and what you expect instead.
8484

85-
The issue will then show up to the *pandas* community and be open to comments/ideas from others.
85+
The issue will then show up to the pandas community and be open to comments/ideas from others.
8686

8787
.. _contributing.github:
8888

8989
Working with the code
9090
=====================
9191

9292
Now that you have an issue you want to fix, enhancement to add, or documentation to improve,
93-
you need to learn how to work with GitHub and the *pandas* code base.
93+
you need to learn how to work with GitHub and the pandas code base.
9494

9595
.. _contributing.version_control:
9696

9797
Version control, Git, and GitHub
9898
--------------------------------
9999

100-
To the new user, working with Git is one of the more daunting aspects of contributing to *pandas*.
100+
To the new user, working with Git is one of the more daunting aspects of contributing to pandas.
101101
It can very quickly become overwhelming, but sticking to the guidelines below will help keep the process
102102
straightforward and mostly trouble free. As always, if you are having difficulties please
103103
feel free to ask for help.
@@ -221,7 +221,7 @@ environment:
221221
<https://conda.io/miniconda.html>`_
222222
* Make sure your conda is up to date (``conda update conda``)
223223
* Make sure that you have :ref:`cloned the repository <contributing.forking>`
224-
* ``cd`` to the *pandas* source directory
224+
* ``cd`` to the pandas source directory
225225

226226
We'll now kick off a three-step process:
227227

@@ -330,7 +330,7 @@ The above can be simplified to::
330330

331331
This changes your working directory to the shiny-new-feature branch. Keep any
332332
changes in this branch specific to one bug or feature so it is clear
333-
what the branch brings to *pandas*. You can have many shiny-new-features
333+
what the branch brings to pandas. You can have many shiny-new-features
334334
and switch in between them using the git checkout command.
335335

336336
When creating this branch, make sure your master branch is up to date with
@@ -349,9 +349,9 @@ you created the branch, check the section on
349349
Contributing to the documentation
350350
=================================
351351

352-
Contributing to the documentation benefits everyone who uses *pandas*.
352+
Contributing to the documentation benefits everyone who uses pandas.
353353
We encourage you to help us improve the documentation, and
354-
you don't have to be an expert on *pandas* to do so! In fact,
354+
you don't have to be an expert on pandas to do so! In fact,
355355
there are sections of the docs that are worse off after being written by
356356
experts. If something in the docs doesn't make sense to you, updating the
357357
relevant section after you figure it out is a great way to ensure it will help
@@ -361,7 +361,7 @@ the next person.
361361
:local:
362362

363363

364-
About the *pandas* documentation
364+
About the pandas documentation
365365
--------------------------------
366366

367367
The documentation is written in **reStructuredText**, which is almost like writing
@@ -372,7 +372,7 @@ complex changes to the documentation as well.
372372

373373
Some other important things to know about the docs:
374374

375-
* The *pandas* documentation consists of two parts: the docstrings in the code
375+
* The pandas documentation consists of two parts: the docstrings in the code
376376
itself and the docs in this folder ``doc/``.
377377

378378
The docstrings provide a clear explanation of the usage of the individual
@@ -452,7 +452,7 @@ This will identify methods documented in ``doc/source/reference`` that are not a
452452
class methods, and existing methods that are not documented in ``doc/source/reference``.
453453

454454

455-
Updating a *pandas* docstring
455+
Updating a pandas docstring
456456
-----------------------------
457457

458458
When improving a single function or method's docstring, it is not necessarily
@@ -477,7 +477,7 @@ When doing a PR with a docstring update, it is good to post the
477477
output of the validation script in a comment on github.
478478

479479

480-
How to build the *pandas* documentation
480+
How to build the pandas documentation
481481
---------------------------------------
482482

483483
Requirements
@@ -543,7 +543,7 @@ And you'll have the satisfaction of seeing your new and improved documentation!
543543
Building master branch documentation
544544
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
545545

546-
When pull requests are merged into the *pandas* ``master`` branch, the main parts of
546+
When pull requests are merged into the pandas ``master`` branch, the main parts of
547547
the documentation are also built by Travis-CI. These docs are then hosted `here
548548
<https://dev.pandas.io>`__, see also
549549
the :ref:`Continuous Integration <contributing.ci>` section.
@@ -563,7 +563,7 @@ Writing good code is not just about what you write. It is also about *how* you
563563
write it. During :ref:`Continuous Integration <contributing.ci>` testing, several
564564
tools will be run to check your code for stylistic errors.
565565
Generating any warnings will cause the test to fail.
566-
Thus, good style is a requirement for submitting code to *pandas*.
566+
Thus, good style is a requirement for submitting code to pandas.
567567

568568
There is a tool in pandas to help contributors verify their changes before
569569
contributing them to the project::
@@ -601,7 +601,7 @@ set in the ``pandas.compat._optional.VERSIONS`` dict.
601601
C (cpplint)
602602
~~~~~~~~~~~
603603

604-
*pandas* uses the `Google <https://google.github.io/styleguide/cppguide.html>`_
604+
pandas uses the `Google <https://google.github.io/styleguide/cppguide.html>`_
605605
standard. Google provides an open source style checker called ``cpplint``, but we
606606
use a fork of it that can be found `here <https://github.com/cpplint/cpplint>`__.
607607
Here are *some* of the more common ``cpplint`` issues:
@@ -652,7 +652,7 @@ fixes manually.
652652
Python (PEP8 / black)
653653
~~~~~~~~~~~~~~~~~~~~~
654654

655-
*pandas* follows the `PEP8 <https://www.python.org/dev/peps/pep-0008/>`_ standard
655+
pandas follows the `PEP8 <https://www.python.org/dev/peps/pep-0008/>`_ standard
656656
and uses `Black <https://black.readthedocs.io/en/stable/>`_ and
657657
`Flake8 <http://flake8.pycqa.org/en/latest/>`_ to ensure a consistent code
658658
format throughout the project.
@@ -703,7 +703,7 @@ Note that these commands can be run analogously with ``black``.
703703

704704
Import formatting
705705
~~~~~~~~~~~~~~~~~
706-
*pandas* uses `isort <https://pypi.org/project/isort/>`__ to standardise import
706+
pandas uses `isort <https://pypi.org/project/isort/>`__ to standardise import
707707
formatting across the codebase.
708708

709709
A guide to import layout as per pep8 can be found `here <https://www.python.org/dev/peps/pep-0008/#imports/>`__.
@@ -778,7 +778,7 @@ Note that if needed, you can skip these checks with ``git commit --no-verify``.
778778
Backwards compatibility
779779
~~~~~~~~~~~~~~~~~~~~~~~
780780

781-
Please try to maintain backward compatibility. *pandas* has lots of users with lots of
781+
Please try to maintain backward compatibility. pandas has lots of users with lots of
782782
existing code, so don't break it if at all possible. If you think breakage is required,
783783
clearly state why as part of the pull request. Also, be careful when changing method
784784
signatures and add deprecation warnings where needed. Also, add the deprecated sphinx
@@ -825,7 +825,7 @@ See :ref:`contributing.warnings` for more.
825825
Type hints
826826
----------
827827

828-
*pandas* strongly encourages the use of :pep:`484` style type hints. New development should contain type hints and pull requests to annotate existing code are accepted as well!
828+
pandas strongly encourages the use of :pep:`484` style type hints. New development should contain type hints and pull requests to annotate existing code are accepted as well!
829829

830830
Style guidelines
831831
~~~~~~~~~~~~~~~~
@@ -906,9 +906,9 @@ With custom types and inference this is not always possible so exceptions are ma
906906
pandas-specific types
907907
~~~~~~~~~~~~~~~~~~~~~
908908

909-
Commonly used types specific to *pandas* will appear in `pandas._typing <https://github.com/pandas-dev/pandas/blob/master/pandas/_typing.py>`_ and you should use these where applicable. This module is private for now but ultimately this should be exposed to third party libraries who want to implement type checking against pandas.
909+
Commonly used types specific to pandas will appear in `pandas._typing <https://github.com/pandas-dev/pandas/blob/master/pandas/_typing.py>`_ and you should use these where applicable. This module is private for now but ultimately this should be exposed to third party libraries who want to implement type checking against pandas.
910910

911-
For example, quite a few functions in *pandas* accept a ``dtype`` argument. This can be expressed as a string like ``"object"``, a ``numpy.dtype`` like ``np.int64`` or even a pandas ``ExtensionDtype`` like ``pd.CategoricalDtype``. Rather than burden the user with having to constantly annotate all of those options, this can simply be imported and reused from the pandas._typing module
911+
For example, quite a few functions in pandas accept a ``dtype`` argument. This can be expressed as a string like ``"object"``, a ``numpy.dtype`` like ``np.int64`` or even a pandas ``ExtensionDtype`` like ``pd.CategoricalDtype``. Rather than burden the user with having to constantly annotate all of those options, this can simply be imported and reused from the pandas._typing module
912912

913913
.. code-block:: python
914914
@@ -922,7 +922,7 @@ This module will ultimately house types for repeatedly used concepts like "path-
922922
Validating type hints
923923
~~~~~~~~~~~~~~~~~~~~~
924924

925-
*pandas* uses `mypy <http://mypy-lang.org>`_ to statically analyze the code base and type hints. After making any change you can ensure your type hints are correct by running
925+
pandas uses `mypy <http://mypy-lang.org>`_ to statically analyze the code base and type hints. After making any change you can ensure your type hints are correct by running
926926

927927
.. code-block:: shell
928928
@@ -933,7 +933,7 @@ Validating type hints
933933
Testing with continuous integration
934934
-----------------------------------
935935

936-
The *pandas* test suite will run automatically on `Travis-CI <https://travis-ci.org/>`__ and
936+
The pandas test suite will run automatically on `Travis-CI <https://travis-ci.org/>`__ and
937937
`Azure Pipelines <https://azure.microsoft.com/en-us/services/devops/pipelines/>`__
938938
continuous integration services, once your pull request is submitted.
939939
However, if you wish to run the test suite on a branch prior to submitting the pull request,
@@ -959,7 +959,7 @@ This is an example of a green build.
959959
Test-driven development/code writing
960960
------------------------------------
961961

962-
*pandas* is serious about testing and strongly encourages contributors to embrace
962+
pandas is serious about testing and strongly encourages contributors to embrace
963963
`test-driven development (TDD) <https://en.wikipedia.org/wiki/Test-driven_development>`_.
964964
This development process "relies on the repetition of a very short development cycle:
965965
first the developer writes an (initially failing) automated test case that defines a desired
@@ -968,10 +968,10 @@ So, before actually writing any code, you should write your tests. Often the te
968968
taken from the original GitHub issue. However, it is always worth considering additional
969969
use cases and writing corresponding tests.
970970

971-
Adding tests is one of the most common requests after code is pushed to *pandas*. Therefore,
971+
Adding tests is one of the most common requests after code is pushed to pandas. Therefore,
972972
it is worth getting in the habit of writing tests ahead of time so this is never an issue.
973973

974-
Like many packages, *pandas* uses `pytest
974+
Like many packages, pandas uses `pytest
975975
<https://docs.pytest.org/en/latest/>`_ and the convenient
976976
extensions in `numpy.testing
977977
<https://docs.scipy.org/doc/numpy/reference/routines.testing.html>`_.
@@ -1018,7 +1018,7 @@ E.g. "# brief comment, see GH#28907"
10181018
Transitioning to ``pytest``
10191019
~~~~~~~~~~~~~~~~~~~~~~~~~~~
10201020

1021-
*pandas* existing test structure is *mostly* class-based, meaning that you will typically find tests wrapped in a class.
1021+
pandas existing test structure is *mostly* class-based, meaning that you will typically find tests wrapped in a class.
10221022

10231023
.. code-block:: python
10241024
@@ -1220,7 +1220,7 @@ Running the test suite
12201220
----------------------
12211221

12221222
The tests can then be run directly inside your Git clone (without having to
1223-
install *pandas*) by typing::
1223+
install pandas) by typing::
12241224

12251225
pytest pandas
12261226

@@ -1272,9 +1272,9 @@ Running the performance test suite
12721272
----------------------------------
12731273

12741274
Performance matters and it is worth considering whether your code has introduced
1275-
performance regressions. *pandas* is in the process of migrating to
1275+
performance regressions. pandas is in the process of migrating to
12761276
`asv benchmarks <https://github.com/spacetelescope/asv>`__
1277-
to enable easy monitoring of the performance of critical *pandas* operations.
1277+
to enable easy monitoring of the performance of critical pandas operations.
12781278
These benchmarks are all found in the ``pandas/asv_bench`` directory. asv
12791279
supports both python2 and python3.
12801280

@@ -1361,7 +1361,7 @@ directive. This should also be put in the docstring when adding a new function
13611361
or method (`example <https://github.com/pandas-dev/pandas/blob/v0.20.2/pandas/core/frame.py#L1495>`__)
13621362
or a new keyword argument (`example <https://github.com/pandas-dev/pandas/blob/v0.20.2/pandas/core/generic.py#L568>`__).
13631363

1364-
Contributing your changes to *pandas*
1364+
Contributing your changes to pandas
13651365
=====================================
13661366

13671367
.. _contributing.commit-code:
@@ -1386,7 +1386,7 @@ Doing 'git status' again should give something like::
13861386
# modified: /relative/path/to/file-you-added.py
13871387
#
13881388

1389-
Finally, commit your changes to your local repository with an explanatory message. *Pandas*
1389+
Finally, commit your changes to your local repository with an explanatory message. pandas
13901390
uses a convention for commit message prefixes and layout. Here are
13911391
some common prefixes along with general guidelines for when to use them:
13921392

@@ -1434,7 +1434,7 @@ like::
14341434
upstream git://github.com/pandas-dev/pandas.git (fetch)
14351435
upstream git://github.com/pandas-dev/pandas.git (push)
14361436

1437-
Now your code is on GitHub, but it is not yet a part of the *pandas* project. For that to
1437+
Now your code is on GitHub, but it is not yet a part of the pandas project. For that to
14381438
happen, a pull request needs to be submitted on GitHub.
14391439

14401440
Review your code

doc/source/development/contributing_docstring.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ about reStructuredText can be found in:
8080
* `Quick reStructuredText reference <https://docutils.sourceforge.io/docs/user/rst/quickref.html>`_
8181
* `Full reStructuredText specification <https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html>`_
8282

83-
Pandas has some helpers for sharing docstrings between related classes, see
83+
pandas has some helpers for sharing docstrings between related classes, see
8484
:ref:`docstring.sharing`.
8585

8686
The rest of this document will summarize all the above guides, and will
@@ -932,7 +932,7 @@ plot will be generated automatically when building the documentation.
932932
Sharing docstrings
933933
------------------
934934

935-
Pandas has a system for sharing docstrings, with slight variations, between
935+
pandas has a system for sharing docstrings, with slight variations, between
936936
classes. This helps us keep docstrings consistent, while keeping things clear
937937
for the user reading. It comes at the cost of some complexity when writing.
938938

doc/source/development/extending.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Extending pandas
77
****************
88

99
While pandas provides a rich set of methods, containers, and data types, your
10-
needs may not be fully satisfied. Pandas offers a few options for extending
10+
needs may not be fully satisfied. pandas offers a few options for extending
1111
pandas.
1212

1313
.. _extending.register-accessors:
@@ -80,8 +80,8 @@ Extension types
8080
The :class:`pandas.api.extensions.ExtensionDtype` and :class:`pandas.api.extensions.ExtensionArray` APIs are new and
8181
experimental. They may change between versions without warning.
8282

83-
Pandas defines an interface for implementing data types and arrays that *extend*
84-
NumPy's type system. Pandas itself uses the extension system for some types
83+
pandas defines an interface for implementing data types and arrays that *extend*
84+
NumPy's type system. pandas itself uses the extension system for some types
8585
that aren't built into NumPy (categorical, period, interval, datetime with
8686
timezone).
8787

@@ -122,7 +122,7 @@ This class provides all the array-like functionality. ExtensionArrays are
122122
limited to 1 dimension. An ExtensionArray is linked to an ExtensionDtype via the
123123
``dtype`` attribute.
124124

125-
Pandas makes no restrictions on how an extension array is created via its
125+
pandas makes no restrictions on how an extension array is created via its
126126
``__new__`` or ``__init__``, and puts no restrictions on how you store your
127127
data. We do require that your array be convertible to a NumPy array, even if
128128
this is relatively expensive (as it is for ``Categorical``).
@@ -224,7 +224,7 @@ for an example.
224224

225225
As part of your implementation, we require that you defer to pandas when a pandas
226226
container (:class:`Series`, :class:`DataFrame`, :class:`Index`) is detected in ``inputs``.
227-
If any of those is present, you should return ``NotImplemented``. Pandas will take care of
227+
If any of those is present, you should return ``NotImplemented``. pandas will take care of
228228
unboxing the array from the container and re-calling the ufunc with the unwrapped input.
229229

230230
.. _extending.extension.testing:

doc/source/development/internals.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ if you compute the levels and codes yourself, please be careful.
8585
Values
8686
~~~~~~
8787

88-
Pandas extends NumPy's type system with custom types, like ``Categorical`` or
88+
pandas extends NumPy's type system with custom types, like ``Categorical`` or
8989
datetimes with a timezone, so we have multiple notions of "values". For 1-D
9090
containers (``Index`` classes and ``Series``) we have the following convention:
9191

doc/source/development/maintaining.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The main contributing guide is available at :ref:`contributing`.
1313
Roles
1414
-----
1515

16-
Pandas uses two levels of permissions: **triage** and **core** team members.
16+
pandas uses two levels of permissions: **triage** and **core** team members.
1717

1818
Triage members can label and close issues and pull requests.
1919

@@ -25,7 +25,7 @@ GitHub publishes the full `list of permissions`_.
2525
Tasks
2626
-----
2727

28-
Pandas is largely a volunteer project, so these tasks shouldn't be read as
28+
pandas is largely a volunteer project, so these tasks shouldn't be read as
2929
"expectations" of triage and maintainers. Rather, they're general descriptions
3030
of what it means to be a maintainer.
3131

0 commit comments

Comments
 (0)