We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dcf2eb commit 32a2041Copy full SHA for 32a2041
pandas/core/internals/construction.py
@@ -17,7 +17,6 @@
17
from pandas._config import using_string_dtype
18
19
from pandas._libs import lib
20
-from pandas._libs.missing import NA
21
22
from pandas.core.dtypes.astype import astype_is_view
23
from pandas.core.dtypes.cast import (
@@ -380,7 +379,7 @@ def dict_to_mgr(
380
379
columns = ensure_index(columns)
381
if dtype is not None and not isinstance(dtype, np.dtype):
382
# e.g. test_dataframe_from_dict_of_series
383
- arrays = [NA] * len(columns)
+ arrays = [dtype.na_value] * len(columns)
384
else:
385
arrays = [np.nan] * len(columns)
386
midxs = set()
0 commit comments