Skip to content

Commit aac19c7

Browse files
committed
Add test
1 parent e4a03b6 commit aac19c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/tests/dtypes/test_inference.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,6 +1405,10 @@ def test_infer_dtype_numeric_with_na(self, na_value):
14051405
ser = Series([1.0, 2.0, na_value], dtype=object)
14061406
assert lib.infer_dtype(ser, skipna=True) == "floating"
14071407

1408+
# GH#61976
1409+
ser = Series([1 + 1j, na_value], dtype=object)
1410+
assert lib.infer_dtype(ser, skipna=True) == "complex"
1411+
14081412
def test_infer_dtype_all_nan_nat_like(self):
14091413
arr = np.array([np.nan, np.nan])
14101414
assert lib.infer_dtype(arr, skipna=True) == "floating"

0 commit comments

Comments
 (0)