Skip to content

Commit 6ad6e4e

Browse files
themrmaxjorisvandenbossche
themrmax
authored andcommitted
DOC: Correct uniqueness of index for Series (pandas-dev#14344)
1 parent 75b606a commit 6ad6e4e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/series.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ class Series(base.IndexOpsMixin, strings.StringAccessorMixin,
103103
"""
104104
One-dimensional ndarray with axis labels (including time series).
105105
106-
Labels need not be unique but must be any hashable type. The object
106+
Labels need not be unique but must be a hashable type. The object
107107
supports both integer- and label-based indexing and provides a host of
108108
methods for performing operations involving the index. Statistical
109109
methods from ndarray have been overridden to automatically exclude
110-
missing data (currently represented as NaN)
110+
missing data (currently represented as NaN).
111111
112112
Operations between Series (+, -, /, *, **) align values based on their
113113
associated index values-- they need not be the same length. The result
@@ -118,8 +118,8 @@ class Series(base.IndexOpsMixin, strings.StringAccessorMixin,
118118
data : array-like, dict, or scalar value
119119
Contains data stored in Series
120120
index : array-like or Index (1d)
121-
Values must be unique and hashable, same length as data. Index
122-
object (or other iterable of same length as data) Will default to
121+
Values must be hashable and have the same length as `data`.
122+
Non-unique index values are allowed. Will default to
123123
RangeIndex(len(data)) if not provided. If both a dict and index
124124
sequence are used, the index will override the keys found in the
125125
dict.

0 commit comments

Comments
 (0)