Skip to content

Commit cf47a42

Browse files
cpcloudjreback
authored andcommitted
DOC: minor issue with the description of the names attribute of multiindexes
1 parent 6653bc0 commit cf47a42

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/source/indexing.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -953,12 +953,12 @@ DataFrame to construct a MultiIndex automatically:
953953
df
954954
955955
All of the ``MultiIndex`` constructors accept a ``names`` argument which stores
956-
string names for the levels themselves. If no names are provided, some
957-
arbitrary ones will be assigned:
956+
string names for the levels themselves. If no names are provided, ``None`` will
957+
be assigned:
958958

959959
.. ipython:: python
960960
961-
index.names
961+
df.index.names
962962
963963
This index can back any axis of a pandas object, and the number of **levels**
964964
of the index is up to you:

pandas/core/series.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ class Series(pa.Array, generic.PandasObject):
425425
dict.
426426
dtype : numpy.dtype or None
427427
If None, dtype will be inferred
428-
copy : boolean, default False, copyinput data
428+
copy : boolean, default False, copy input data
429429
"""
430430
_AXIS_NUMBERS = {
431431
'index': 0

0 commit comments

Comments
 (0)