Skip to content

Commit 32a2041

Browse files
committed
NA->dtype.na_value
1 parent 7dcf2eb commit 32a2041

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/internals/construction.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from pandas._config import using_string_dtype
1818

1919
from pandas._libs import lib
20-
from pandas._libs.missing import NA
2120

2221
from pandas.core.dtypes.astype import astype_is_view
2322
from pandas.core.dtypes.cast import (
@@ -380,7 +379,7 @@ def dict_to_mgr(
380379
columns = ensure_index(columns)
381380
if dtype is not None and not isinstance(dtype, np.dtype):
382381
# e.g. test_dataframe_from_dict_of_series
383-
arrays = [NA] * len(columns)
382+
arrays = [dtype.na_value] * len(columns)
384383
else:
385384
arrays = [np.nan] * len(columns)
386385
midxs = set()

0 commit comments

Comments
 (0)