diff --git a/pandas/tests/frame/methods/test_replace.py b/pandas/tests/frame/methods/test_replace.py index c42039bb92154..a1d62a103b322 100644 --- a/pandas/tests/frame/methods/test_replace.py +++ b/pandas/tests/frame/methods/test_replace.py @@ -975,30 +975,15 @@ def test_replace_for_new_dtypes(self, datetime_frame): ), ), # GH 35376 + (DataFrame([[1, 1.0], [2, 2.0]]), 1.0, 5, DataFrame([[5, 5.0], [2, 2.0]]),), + (DataFrame([[1, 1.0], [2, 2.0]]), 1, 5, DataFrame([[5, 5.0], [2, 2.0]]),), ( DataFrame([[1, 1.0], [2, 2.0]]), 1.0, - 5, - DataFrame([[5, 5.0], [2, 2.0]]), - ), - ( - DataFrame([[1, 1.0], [2, 2.0]]), - 1, - 5, - DataFrame([[5, 5.0], [2, 2.0]]), - ), - ( - DataFrame([[1, 1.0], [2, 2.0]]), - 1.0, - 5.0, - DataFrame([[5, 5.0], [2, 2.0]]), - ), - ( - DataFrame([[1, 1.0], [2, 2.0]]), - 1, 5.0, DataFrame([[5, 5.0], [2, 2.0]]), ), + (DataFrame([[1, 1.0], [2, 2.0]]), 1, 5.0, DataFrame([[5, 5.0], [2, 2.0]]),), ], ) def test_replace_dtypes(self, frame, to_replace, value, expected):