From 5f7f2b2ec1fd5f607d44ddcfe29f8f1586bfac40 Mon Sep 17 00:00:00 2001 From: Simon Hawkins Date: Sat, 26 Sep 2020 13:12:29 +0100 Subject: [PATCH] CLN: lint fixup on 1.1.x (#36663) --- pandas/tests/frame/methods/test_replace.py | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) 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):