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 650d6f8 commit 3d6abaaCopy full SHA for 3d6abaa
pandas/core/construction.py
@@ -520,7 +520,6 @@ def sanitize_masked_array(data: ma.MaskedArray) -> np.ndarray:
520
data.soften_mask() # If the data is a Masked EA, directly soften the mask.
521
else:
522
dtype, fill_value = maybe_promote(data.dtype, np.nan)
523
- dtype = cast(np.dtype, dtype)
524
data = ma.asarray(data.astype(dtype, copy=True))
525
data.soften_mask() # set hardmask False if it was True
526
data[mask] = fill_value
0 commit comments