Skip to content

Commit f3967ca

Browse files
REF Series: incorporate changes from pandas-dev#57889
1 parent 32dda5b commit f3967ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/series.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,8 @@ def __init__(
408408
na_value = na_value_for_dtype(pandas_dtype(dtype), compat=False)
409409

410410
# Series TASK 4: DATA TRANSFORMATIONS.
411-
if is_dict_like(data) and not is_pandas_object and data is not None:
411+
if isinstance(data, Mapping):
412+
# if is_dict_like(data) and not is_pandas_object and data is not None:
412413
# Dict is SPECIAL case, since it's data has data values and index keys.
413414

414415
# Looking for NaN in dict doesn't work ({np.nan : 1}[float('nan')]

0 commit comments

Comments
 (0)