Skip to content

Commit 6bc2f6e

Browse files
cghielminihuppd
andauthored
Update tests/util/test_dataframe_ops.py
Co-authored-by: Daniel Hupp <daniel.hupp@meteoswiss.ch>
1 parent ff12bba commit 6bc2f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/util/test_dataframe_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def test_compute_rel_diff_with_negatives():
114114
df2 = pd.DataFrame([[-2.0, 3.0], [-1.0, -5.0]], columns=["A", "B"])
115115

116116
result = compute_rel_diff_dataframe(df1, df2)
117-
expected = pd.DataFrame([[0.5, 0], [1.0 / 3.0, 0.2]], columns=["A", "B"])
117+
expected = pd.DataFrame([[0.5, 0.0], [1.0 / 3.0, 0.2]], columns=["A", "B"])
118118

119119
pd.testing.assert_frame_equal(result, expected, check_exact=False)
120120

0 commit comments

Comments
 (0)