Skip to content

Commit 3d6abaa

Browse files
committed
fix bug2
1 parent 650d6f8 commit 3d6abaa

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pandas/core/construction.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,6 @@ def sanitize_masked_array(data: ma.MaskedArray) -> np.ndarray:
520520
data.soften_mask() # If the data is a Masked EA, directly soften the mask.
521521
else:
522522
dtype, fill_value = maybe_promote(data.dtype, np.nan)
523-
dtype = cast(np.dtype, dtype)
524523
data = ma.asarray(data.astype(dtype, copy=True))
525524
data.soften_mask() # set hardmask False if it was True
526525
data[mask] = fill_value

0 commit comments

Comments
 (0)