Skip to content

FIX: Correct clip behavior test for lower > upper case #61899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from

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