Skip to content

Commit 66933b6

Browse files
author
Thomas Dickson
committed
pandas-dev#35406 BUG/DOC addition to series docs to describe dict behaviour precedence
1 parent 9fea06c commit 66933b6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/core/series.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,7 @@ 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 and index is None, then the values in the index are used to reindex the Series after it is created using the keys in the data.
170168
dtype : str, numpy.dtype, or ExtensionDtype, optional
171169
Data type for the output Series. If not specified, this will be
172170
inferred from `data`.

0 commit comments

Comments
 (0)