Skip to content

Commit b86546e

Browse files
committed
DOC: fixes references in indexing and whatsnew
1 parent d38ecca commit b86546e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: doc/source/indexing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ new column. In 0.21.0 and later, this will raise a ``UserWarning``:
271271
272272
In[1]: df = pd.DataFrame({'one': [1., 2., 3.]})
273273
In[2]: df.two = [4, 5, 6]
274-
UserWarning: Pandas doesn't allow Series to be assigned into nonexistent columns - see https://pandas.pydata.org/pandas-docs/stable/indexing.html#attribute-access
274+
UserWarning: Pandas doesn't allow Series to be assigned into nonexistent columns - see https://pandas.pydata.org/pandas-docs/stable/indexing.html#attribute_access
275275
In[3]: df
276276
Out[3]:
277277
one

Diff for: doc/source/whatsnew/v0.21.0.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ using the :func:`to_numeric` function (or :func:`to_datetime`, :func:`to_timedel
6161
df['C'] = pd.to_numeric(df['C'], errors='coerce')
6262
df.dtypes
6363

64-
.. _whatsnew_0210.enhancements.column-creation:
64+
.. _whatsnew_0210.enhancements.attribute_access:
6565

6666
Improved warnings when attempting to create columns
67-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6868

6969
New users are often flummoxed by the relationship between column operations and attribute
7070
access on ``DataFrame`` instances (:issue:`5904` & :issue:`7175`). Two specific instances
@@ -104,7 +104,7 @@ This does not permit that column to be accessed as an attribute:
104104
1 2.0 7.0
105105
2 3.0 9.0>
106106

107-
Both of these now raise a ``UserWarning`` about the potential for unexpected behavior. See `Attribute Access <https://pandas.pydata.org/pandas-docs/stable/indexing.html#attribute-access>`__.
107+
Both of these now raise a ``UserWarning`` about the potential for unexpected behavior. See :ref:`Attribute Access <indexing.attribute_access>`.
108108

109109
.. _whatsnew_0210.enhancements.other:
110110

0 commit comments

Comments
 (0)