Skip to content

Commit 0c4e611

Browse files
DOC: Fix various warnings (#20509)
1 parent eb095af commit 0c4e611

File tree

14 files changed

+54
-39
lines changed

14 files changed

+54
-39
lines changed

doc/source/comparison_with_r.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ In Python, this list would be a list of tuples, so
397397
pd.DataFrame(a)
398398
399399
For more details and examples see :ref:`the Into to Data Structures
400-
documentation <basics.dataframe.from_items>`.
400+
documentation <dsintro>`.
401401

402402
|meltdf|_
403403
~~~~~~~~~~~~~~~~

doc/source/contributing.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,11 @@ Some other important things to know about the docs:
298298
Standard**. Follow the :ref:`pandas docstring guide <docstring>` for detailed
299299
instructions on how to write a correct docstring.
300300

301+
.. toctree::
302+
:maxdepth: 2
303+
304+
contributing_docstring.rst
305+
301306
- The tutorials make heavy use of the `ipython directive
302307
<http://matplotlib.org/sampledoc/ipython_directive.html>`_ sphinx extension.
303308
This directive lets you put code in the documentation which will be run
@@ -900,7 +905,7 @@ Documenting your code
900905
Changes should be reflected in the release notes located in ``doc/source/whatsnew/vx.y.z.txt``.
901906
This file contains an ongoing change log for each release. Add an entry to this file to
902907
document your fix, enhancement or (unavoidable) breaking change. Make sure to include the
903-
GitHub issue number when adding your entry (using `` :issue:`1234` `` where `1234` is the
908+
GitHub issue number when adding your entry (using ``:issue:`1234``` where ``1234`` is the
904909
issue/pull request number).
905910
906911
If your code is an enhancement, it is most likely necessary to add usage
@@ -1020,15 +1025,15 @@ release. To submit a pull request:
10201025
#. Click ``Send Pull Request``.
10211026
10221027
This request then goes to the repository maintainers, and they will review
1023-
the code.
1028+
the code.
10241029
10251030
.. _contributing.update-pr:
10261031
10271032
Updating your pull request
10281033
--------------------------
10291034
10301035
Based on the review you get on your pull request, you will probably need to make
1031-
some changes to the code. In that case, you can make them in your branch,
1036+
some changes to the code. In that case, you can make them in your branch,
10321037
add a new commit to that branch, push it to GitHub, and the pull request will be
10331038
automatically updated. Pushing them to GitHub again is done by::
10341039
@@ -1039,7 +1044,7 @@ This will automatically update your pull request with the latest code and restar
10391044
10401045
Another reason you might need to update your pull request is to solve conflicts
10411046
with changes that have been merged into the master branch since you opened your
1042-
pull request.
1047+
pull request.
10431048
10441049
To do this, you need to "merge upstream master" in your branch::
10451050

doc/source/cookbook.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,8 @@ Levels
411411
`Flatten Hierarchical columns
412412
<http://stackoverflow.com/questions/14507794/python-pandas-how-to-flatten-a-hierarchical-index-in-columns>`__
413413

414+
.. _cookbook.missing_data:
415+
414416
Missing Data
415417
------------
416418

doc/source/io.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3862,6 +3862,8 @@ Then create the index when finished appending.
38623862
38633863
See `here <http://stackoverflow.com/questions/17893370/ptrepack-sortby-needs-full-index>`__ for how to create a completely-sorted-index (CSI) on an existing store.
38643864

3865+
.. _io.hdf5-query-data-columns:
3866+
38653867
Query via Data Columns
38663868
++++++++++++++++++++++
38673869

doc/source/release.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Highlights include:
7171

7272
- Temporarily restore matplotlib datetime plotting functionality. This should
7373
resolve issues for users who relied implicitly on pandas to plot datetimes
74-
with matplotlib. See :ref:`here <whatsnew_0211.special>`.
74+
with matplotlib. See :ref:`here <whatsnew_0211.converters>`.
7575
- Improvements to the Parquet IO functions introduced in 0.21.0. See
7676
:ref:`here <whatsnew_0211.enhancements.parquet>`.
7777

doc/source/whatsnew/v0.10.0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ N Dimensional Panels (Experimental)
409409
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
410410

411411
Adding experimental support for Panel4D and factory functions to create n-dimensional named panels.
412-
:ref:`Docs <dsintro.panel4d>` for NDim. Here is a taste of what to expect.
412+
Here is a taste of what to expect.
413413

414414
.. code-block:: ipython
415415

doc/source/whatsnew/v0.16.1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Highlights include:
2626

2727
.. warning::
2828

29-
In pandas 0.17.0, the sub-package ``pandas.io.data`` will be removed in favor of a separately installable package. See :ref:`here for details <remote_data.pandas_datareader>` (:issue:`8961`)
29+
In pandas 0.17.0, the sub-package ``pandas.io.data`` will be removed in favor of a separately installable package (:issue:`8961`).
3030

3131
Enhancements
3232
~~~~~~~~~~~~

doc/source/whatsnew/v0.23.0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ Other Enhancements
331331
:func:`pandas.api.extensions.register_series_accessor`, and
332332
:func:`pandas.api.extensions.register_index_accessor`, accessor for libraries downstream of pandas
333333
to register custom accessors like ``.cat`` on pandas objects. See
334-
:ref:`Registering Custom Accessors <developer.register-accessors>` for more (:issue:`14781`).
334+
:ref:`Registering Custom Accessors <extending.register-accessors>` for more (:issue:`14781`).
335335

336336
- ``IntervalIndex.astype`` now supports conversions between subtypes when passed an ``IntervalDtype`` (:issue:`19197`)
337337
- :class:`IntervalIndex` and its associated constructor methods (``from_arrays``, ``from_breaks``, ``from_tuples``) have gained a ``dtype`` parameter (:issue:`19262`)

doc/source/whatsnew/v0.6.1.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ New features
1616
- Add PyQt table widget to sandbox (:issue:`435`)
1717
- DataFrame.align can :ref:`accept Series arguments <basics.align.frame.series>`
1818
and an :ref:`axis option <basics.df_join>` (:issue:`461`)
19-
- Implement new :ref:`SparseArray <sparse.array>` and :ref:`SparseList <sparse.list>`
19+
- Implement new :ref:`SparseArray <sparse.array>` and `SparseList`
2020
data structures. SparseSeries now derives from SparseArray (:issue:`463`)
2121
- :ref:`Better console printing options <basics.console_output>` (:issue:`453`)
2222
- Implement fast :ref:`data ranking <computation.ranking>` for Series and
2323
DataFrame, fast versions of scipy.stats.rankdata (:issue:`428`)
24-
- Implement :ref:`DataFrame.from_items <basics.dataframe.from_items>` alternate
24+
- Implement `DataFrame.from_items` alternate
2525
constructor (:issue:`444`)
2626
- DataFrame.convert_objects method for :ref:`inferring better dtypes <basics.cast>`
2727
for object columns (:issue:`302`)

doc/source/whatsnew/v0.7.3.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ New features
2222
from pandas.tools.plotting import scatter_matrix
2323
scatter_matrix(df, alpha=0.2)
2424

25-
.. image:: _static/scatter_matrix_kde.png
25+
.. image:: savefig/scatter_matrix_kde.png
2626
:width: 5in
2727

2828
- Add ``stacked`` argument to Series and DataFrame's ``plot`` method for
@@ -32,14 +32,14 @@ New features
3232

3333
df.plot(kind='bar', stacked=True)
3434

35-
.. image:: _static/bar_plot_stacked_ex.png
35+
.. image:: savefig/bar_plot_stacked_ex.png
3636
:width: 4in
3737

3838
.. code-block:: python
3939

4040
df.plot(kind='barh', stacked=True)
4141

42-
.. image:: _static/barh_plot_stacked_ex.png
42+
.. image:: savefig/barh_plot_stacked_ex.png
4343
:width: 4in
4444

4545
- Add log x and y :ref:`scaling options <visualization.basic>` to

0 commit comments

Comments
 (0)