formatting updates · rs2/pandas@7e23678 (original) (raw)
`@@ -1931,22 +1931,6 @@ def test_clip_against_frame(self, axis):
`
1931
1931
`tm.assert_frame_equal(clipped_df[ub_mask], ub[ub_mask])
`
1932
1932
`tm.assert_frame_equal(clipped_df[mask], df[mask])
`
1933
1933
``
1934
``
`-
def test_clip_na(self):
`
1935
``
`-
msg = "Cannot use an NA"
`
1936
``
`-
with tm.assert_raises_regex(ValueError, msg):
`
1937
``
`-
self.frame.clip(lower=np.nan)
`
1938
``
-
1939
``
`-
with tm.assert_raises_regex(ValueError, msg):
`
1940
``
`-
self.frame.clip(lower=[np.nan])
`
1941
``
-
1942
``
`-
with tm.assert_raises_regex(ValueError, msg):
`
1943
``
`-
self.frame.clip(upper=np.nan)
`
1944
``
-
1945
``
`-
with tm.assert_raises_regex(ValueError, msg):
`
1946
``
`-
self.frame.clip(upper=[np.nan])
`
1947
``
-
1948
``
`-
with tm.assert_raises_regex(ValueError, msg):
`
1949
``
`-
self.frame.clip(lower=np.nan, upper=np.nan)
`
1950
1934
``
1951
1935
`def test_clip_with_na_args(self):
`
1952
1936
`"""Should process np.nan argument as None """
`