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

perf: simplify pandas-like with_columns #1366

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

MarcoGorelli
Copy link
Member

@MarcoGorelli MarcoGorelli commented Nov 13, 2024

Looks like we no longer need the specialised path, I think https://github.com/narwhals-dev/narwhals/pull/1201/files may have made it redundant

This should address the fragmentation warning noticed in Nixtla/hierarchicalforecast#305

This passes all unit and downstream tests. I also ran the scikit-lego test suite manually locally to make sure (as it was there that we noticed the need for a separate path), and can confirm it still passes

If anyone's reviewing, this is much easier to review hiding whitespace https://github.com/narwhals-dev/narwhals/pull/1366/files?diff=unified&w=1

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.

@MarcoGorelli MarcoGorelli marked this pull request as ready for review November 13, 2024 10:48
@MarcoGorelli MarcoGorelli changed the title wip try using fastpath always perf: simplify pandas-like with_columns Nov 13, 2024
@MarcoGorelli MarcoGorelli merged commit 4c2b60e into narwhals-dev:main Nov 13, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant