From c44204080ee9001604cc6da1a650a8395b31d36e Mon Sep 17 00:00:00 2001 From: Michael Gasvoda Date: Fri, 18 Aug 2017 17:06:51 -0400 Subject: [PATCH] formatting fixes --- pandas/tests/frame/test_analytics.py | 5 ++--- pandas/tests/series/test_analytics.py | 7 ++++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pandas/tests/frame/test_analytics.py b/pandas/tests/frame/test_analytics.py index 8ba9cc74e285d..c202a07c9ef8a 100644 --- a/pandas/tests/frame/test_analytics.py +++ b/pandas/tests/frame/test_analytics.py @@ -1931,13 +1931,12 @@ def test_clip_against_frame(self, axis): tm.assert_frame_equal(clipped_df[ub_mask], ub[ub_mask]) tm.assert_frame_equal(clipped_df[mask], df[mask]) - def test_clip_with_na_args(self): """Should process np.nan argument as None """ # GH # 17276 self.frame.clip(np.nan) - self.frame.clip(upper=[1,2,np.nan]) - self.frame.clip(lower=[1,np.nan,3]) + self.frame.clip(upper=[1, 2, np.nan]) + self.frame.clip(lower=[1, np.nan, 3]) self.frame.clip(upper=np.nan, lower=np.nan) # Matrix-like diff --git a/pandas/tests/series/test_analytics.py b/pandas/tests/series/test_analytics.py index 7a9ffb2a62411..13900536227e0 100644 --- a/pandas/tests/series/test_analytics.py +++ b/pandas/tests/series/test_analytics.py @@ -1003,10 +1003,11 @@ def test_clip_types_and_nulls(self): def test_clip_with_na_args(self): """Should process np.nan argument as None """ # GH # 17276 - s = Series([1,2,3]) + s = Series([1, 2, 3]) + s.clip(np.nan) - s.clip(upper=[1,2,np.nan]) - s.clip(lower=[1,np.nan,3]) + s.clip(upper=[1, 2, np.nan]) + s.clip(lower=[1, np.nan, 3]) s.clip(upper=np.nan, lower=np.nan) def test_clip_against_series(self):