Skip to content

Commit c927855

Browse files
committed
Change condition to elif
1 parent ccfc283 commit c927855

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/construction.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,7 @@ def sanitize_array(
498498
"""
499499
if isinstance(data, ma.MaskedArray):
500500
data = sanitize_masked_array(data)
501-
502-
if isinstance(data, np.matrix):
501+
elif isinstance(data, np.matrix):
503502
data = data.A
504503

505504
if isinstance(dtype, PandasDtype):

0 commit comments

Comments
 (0)