Skip to content

Commit

Permalink
formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mgasvoda committed Aug 18, 2017
1 parent 7e23678 commit c442040
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 2 additions & 3 deletions pandas/tests/frame/test_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions pandas/tests/series/test_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c442040

Please sign in to comment.