Skip to content

Conversation

utsab345
Copy link

Description:

This PR adds a test case to verify the behavior of DataFrame.clip() when the lower bound is greater than the upper bound. The test confirms that the method applies clipping boundaries as-is without swapping them, which results in partially clipped values consistent with current pandas behavior.

Issue:

This fixes the test logic related to issue #61856

@@ -0,0 +1,7 @@
import pandas as pd

def test_clip_lower_greater_than_upper():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is already a tests.frame.methods.test_clip

@utsab345 utsab345 closed this Jul 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants