Skip to content

Commit

Permalink
get tests working
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgsavage committed Aug 5, 2024
1 parent c605913 commit 320901a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pint_pandas/testsuite/test_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def test_issue_194(dtype):
class TestIssue202(BaseExtensionTests):
def test_dequantify_duplicate_col_names(self):
df = pd.DataFrame()
df["test"] = pd.Series([1, 2, 3], dtype="pint[kN]")
df["test"] = pd.Series([1, 2, 3], dtype="pint[kN][Int64]")
df.insert(0, "test", df["test"], allow_duplicates=True)

expected = pd.DataFrame.from_dict(
Expand All @@ -213,7 +213,7 @@ def test_dequantify_duplicate_col_names(self):
"column_names": [None, "unit"],
},
orient="tight",
dtype="Float64",
dtype="Int64",
)
result = df.iloc[:, 1:].pint.dequantify()
tm.assert_frame_equal(expected, result)
Expand All @@ -227,7 +227,7 @@ def test_dequantify_duplicate_col_names(self):
"column_names": [None, "unit"],
},
orient="tight",
dtype="Float64",
dtype="Int64",
)
result = df.pint.dequantify()
tm.assert_frame_equal(expected, result)
Expand Down

0 comments on commit 320901a

Please sign in to comment.