Skip to content

Commit 6eddbab

Browse files
committed
BUG: Dataframe constructor fails when given dict with None value pandas-dev#14381
1 parent 0407991 commit 6eddbab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/core/series.py

+3
Original file line numberDiff line numberDiff line change
@@ -2897,6 +2897,9 @@ def _try_cast(arr, take_fast_path):
28972897

28982898
subarr = _possibly_cast_to_datetime(subarr, dtype)
28992899

2900+
elif data is None:
2901+
subarr = np.array(np.nan)
2902+
29002903
else:
29012904
subarr = _try_cast(data, False)
29022905

0 commit comments

Comments
 (0)