Skip to content

Commit 024feac

Browse files
committed
Check that decimal and non-decimal returns 'mixed'
1 parent b291b62 commit 024feac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/tests/dtypes/test_inference.py

+4
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,10 @@ def test_decimals(self):
469469
result = lib.infer_dtype(arr)
470470
assert result == 'decimal'
471471

472+
arr = np.array([1.0, 2.0, Decimal(3)])
473+
result = lib.infer_dtype(arr)
474+
assert result == 'mixed'
475+
472476
def test_string(self):
473477
pass
474478

0 commit comments

Comments
 (0)