Skip to content

DOC: Remove absolute urls from the docs #32539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Mar 12, 2020
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Filtering in SQL is done via a WHERE clause.
LIMIT 5;

DataFrames can be filtered in multiple ways; the most intuitive of which is using
`boolean indexing <https://pandas.pydata.org/pandas-docs/stable/indexing.html#boolean-indexing>`_.
:ref:`Boolean indexing <indexing.boolean>`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:ref:`Boolean indexing <indexing.boolean>`
:ref:`boolean indexing <indexing.boolean>`


.. ipython:: python

Expand Down
3 changes: 1 addition & 2 deletions doc/source/user_guide/cookbook.rst
Original file line number Diff line number Diff line change
Expand Up @@ -794,8 +794,7 @@ The :ref:`Resample <timeseries.resampling>` docs.
`Time grouping with some missing values
<https://stackoverflow.com/questions/33637312/pandas-grouper-by-frequency-with-completeness-requirement>`__

`Valid frequency arguments to Grouper
<https://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__
Valid frequency arguments to Grouper :ref:`Timeseries <timeseries.offset_aliases>`

`Grouping using a MultiIndex
<https://stackoverflow.com/questions/41483763/pandas-timegrouper-on-multiindex>`__
Expand Down
4 changes: 2 additions & 2 deletions doc/source/user_guide/indexing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ new column. In 0.21.0 and later, this will raise a ``UserWarning``:

In [1]: df = pd.DataFrame({'one': [1., 2., 3.]})
In [2]: df.two = [4, 5, 6]
UserWarning: Pandas doesn't allow Series to be assigned into nonexistent columns - see https://pandas.pydata.org/pandas-docs/stable/indexing.html#attribute_access
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you revert this one as well? (it's in the output of code, which should still return the absolute url)

UserWarning: Pandas doesn't allow Series to be assigned into nonexistent columns - see :ref:`Attribute Access <indexing.attribute_access>`
In [3]: df
Out[3]:
one
Expand Down Expand Up @@ -676,7 +676,7 @@ Current behavior
KeyError in the future, you can use .reindex() as an alternative.

See the documentation here:
https://pandas.pydata.org/pandas-docs/stable/indexing.html#deprecate-loc-reindex-listlike
:ref:`Deprecation doc <indexing.deprecate_loc_reindex_listlike>`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can make the "here" the text of the reference (and remove the colon), I think.


Out[4]:
1 2.0
Expand Down
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.21.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ Current behavior
KeyError in the future, you can use .reindex() as an alternative.

See the documentation here:
https://pandas.pydata.org/pandas-docs/stable/indexing.html#deprecate-loc-reindex-listlike
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also code output that should be left alone

:ref:`Deprecation doc <indexing.deprecate_loc_reindex_listlike>`

Out[4]:
1 2.0
Expand Down
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.23.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Check the :ref:`API Changes <whatsnew_0230.api_breaking>` and :ref:`deprecations
.. warning::

Starting January 1, 2019, pandas feature releases will support Python 3 only.
See `Dropping Python 2.7 <https://pandas.pydata.org/pandas-docs/version/0.24/install.html#install-dropping-27>`_ for more.
See :ref:`Dropping Python 2.7 <install>` for more.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You will need to keep the absolute reference here as well, since this needs to refer to the versioned docs (that page doesn't exist anymore on the stable docs)


.. contents:: What's new in v0.23.0
:local:
Expand Down
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.23.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ and bug fixes. We recommend that all users upgrade to this version.
.. warning::

Starting January 1, 2019, pandas feature releases will support Python 3 only.
See `Dropping Python 2.7 <https://pandas.pydata.org/pandas-docs/version/0.24/install.html#install-dropping-27>`_ for more.
See :ref:`Dropping Python 2.7 <install>` for more.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here


.. contents:: What's new in v0.23.1
:local:
Expand Down
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.23.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ and bug fixes. We recommend that all users upgrade to this version.
.. warning::

Starting January 1, 2019, pandas feature releases will support Python 3 only.
See `Dropping Python 2.7 <https://pandas.pydata.org/pandas-docs/version/0.24/install.html#install-dropping-27>`_ for more.
See :ref:`Dropping Python 2.7 <install>` for more.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here


.. contents:: What's new in v0.23.2
:local:
Expand Down
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.23.4.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ and bug fixes. We recommend that all users upgrade to this version.
.. warning::

Starting January 1, 2019, pandas feature releases will support Python 3 only.
See `Dropping Python 2.7 <https://pandas.pydata.org/pandas-docs/version/0.24/install.html#install-dropping-27>`_ for more.
See :ref:`Dropping Python 2.7 <install>` for more.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here (and others below)


.. contents:: What's new in v0.23.4
:local:
Expand Down
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.24.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ What's new in 0.24.0 (January 25, 2019)
.. warning::

The 0.24.x series of releases will be the last to support Python 2. Future feature
releases will support Python 3 only. See `Dropping Python 2.7 <https://pandas.pydata.org/pandas-docs/version/0.24/install.html#install-dropping-27>`_ for more
releases will support Python 3 only. See :ref:`Dropping Python 2.7 <install>` for more
details.

{{ header }}
Expand Down
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.24.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Whats new in 0.24.1 (February 3, 2019)
.. warning::

The 0.24.x series of releases will be the last to support Python 2. Future feature
releases will support Python 3 only. See `Dropping Python 2.7 <https://pandas.pydata.org/pandas-docs/version/0.24/install.html#install-dropping-27>`_ for more.
releases will support Python 3 only. See :ref:`Dropping Python 2.7 <install>` for more.

{{ header }}

Expand Down
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.24.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Whats new in 0.24.2 (March 12, 2019)
.. warning::

The 0.24.x series of releases will be the last to support Python 2. Future feature
releases will support Python 3 only. See `Dropping Python 2.7 <https://pandas.pydata.org/pandas-docs/version/0.24/install.html#install-dropping-27>`_ for more.
releases will support Python 3 only. See :ref:`Dropping Python 2.7 <install>` for more.

{{ header }}

Expand Down
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.25.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ What's new in 0.25.0 (July 18, 2019)
.. warning::

Starting with the 0.25.x series of releases, pandas only supports Python 3.5.3 and higher.
See `Dropping Python 2.7 <https://pandas.pydata.org/pandas-docs/version/0.24/install.html#install-dropping-27>`_ for more details.
See :ref:`Dropping Python 2.7 <install>` for more details.

.. warning::

Expand Down