Skip to content

Commit

Permalink
run pre-commit tests to pass lint test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Hemenway committed Apr 3, 2024
1 parent 7e48e5e commit 838a716
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pint_pandas/testsuite/test_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,15 @@ def test_dequantify(self):
)
result = df.pint.dequantify()
tm.assert_frame_equal(expected, result)



class TestIssue217(BaseExtensionTests):

def test_roundtrip(self):
df = pd.DataFrame(
{
'power': pd.Series([1.0,2.0,3.0], dtype='pint[W]'),
'torque': pd.Series([4.0,5.0,6.0], dtype='pint[N*m]'),
'fruits': pd.Series(['apple', 'pear', 'kiwi'])
"power": pd.Series([1.0, 2.0, 3.0], dtype="pint[W]"),
"torque": pd.Series([4.0, 5.0, 6.0], dtype="pint[N*m]"),
"fruits": pd.Series(["apple", "pear", "kiwi"]),
}
)
df1 = df.pint.dequantify().pint.quantify(level=-1)
Expand Down

0 comments on commit 838a716

Please sign in to comment.