diff --git a/pint_pandas/testsuite/test_issues.py b/pint_pandas/testsuite/test_issues.py index 98b28d2..e43dbe2 100644 --- a/pint_pandas/testsuite/test_issues.py +++ b/pint_pandas/testsuite/test_issues.py @@ -311,3 +311,15 @@ def test_issue246(self): # now an operation where each cell is independent from each other df.apply(lambda x: x * 2, axis=1) + + +class TestIssue247(BaseExtensionTests): + a = pd.Series([2.0, 3.0, 4.0], dtype="pint[km][int16]") + result = a / a + expected = pd.Series([1, 1, 1], dtype="pint[][float64]") + tm.assert_series_equal(result, expected) + + a = pd.Series([2.0, 3.0, 4.0], dtype="pint[km][Int16]") + result = a / a + expected = pd.Series([1, 1, 1], dtype="pint[][Float64]") + tm.assert_series_equal(result, expected)