Skip to content

Commit

Permalink
subdtype
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgsavage committed Aug 29, 2024
1 parent edb8567 commit 5eeb788
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pint_pandas/testsuite/test_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 5eeb788

Please sign in to comment.