Skip to content
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

chore: simplify Expr.clip #777

Merged
merged 1 commit into from
Aug 11, 2024

Conversation

MarcoGorelli
Copy link
Member

What type of PR is this? (check all applicable)

  • πŸ’Ύ Refactor
  • ✨ Feature
  • πŸ› Bug Fix
  • πŸ”§ Optimization
  • πŸ“ Documentation
  • βœ… Test
  • 🐳 Other

Related issues

  • Related issue #
  • Closes #

Checklist

  • Code follows style guide (ruff)
  • Tests added
  • Documented the changes

If you have comments or can explain your changes, please do so below.

Comment on lines -1919 to 1920
return self.__class__(
lambda plx: self._call(plx).clip(
extract_compliant(plx, lower_bound), extract_compliant(plx, upper_bound)
)
)
return self.__class__(lambda plx: self._call(plx).clip(lower_bound, upper_bound))

Copy link
Member Author

Choose a reason for hiding this comment

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

@aivanoved we don't accept expressions here, so you don't need extract_native

@MarcoGorelli MarcoGorelli merged commit 35e33d1 into narwhals-dev:main Aug 11, 2024
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant