We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32dda5b commit f3967caCopy full SHA for f3967ca
pandas/core/series.py
@@ -408,7 +408,8 @@ def __init__(
408
na_value = na_value_for_dtype(pandas_dtype(dtype), compat=False)
409
410
# Series TASK 4: DATA TRANSFORMATIONS.
411
- if is_dict_like(data) and not is_pandas_object and data is not None:
+ if isinstance(data, Mapping):
412
+ # if is_dict_like(data) and not is_pandas_object and data is not None:
413
# Dict is SPECIAL case, since it's data has data values and index keys.
414
415
# Looking for NaN in dict doesn't work ({np.nan : 1}[float('nan')]
0 commit comments