We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a6a1ba commit 986e7b5Copy full SHA for 986e7b5
pandas/tests/frame/test_clip.py
@@ -0,0 +1,7 @@
1
+import pandas as pd
2
+
3
+def test_clip_lower_greater_than_upper():
4
+ df = pd.DataFrame({'A': [1, 5, 10]})
5
+ result = df.clip(lower=10, upper=5)
6
+ expected = pd.DataFrame({'A': [5, 5, 10]})
7
+ pd.testing.assert_frame_equal(result, expected)
0 commit comments