Skip to content

Commit c4f0c6f

Browse files
author
Thomas Dickson
authored
Updated series documentation to close #35406 (#36139)
1 parent 70c056b commit c4f0c6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/series.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ class Series(base.IndexOpsMixin, generic.NDFrame):
164164
index : array-like or Index (1d)
165165
Values must be hashable and have the same length as `data`.
166166
Non-unique index values are allowed. Will default to
167-
RangeIndex (0, 1, 2, ..., n) if not provided. If both a dict and index
168-
sequence are used, the index will override the keys found in the
169-
dict.
167+
RangeIndex (0, 1, 2, ..., n) if not provided. If data is dict-like
168+
and index is None, then the values in the index are used to
169+
reindex the Series after it is created using the keys in the data.
170170
dtype : str, numpy.dtype, or ExtensionDtype, optional
171171
Data type for the output Series. If not specified, this will be
172172
inferred from `data`.

0 commit comments

Comments
 (0)