Skip to content

fix: with_row_index was returning incorrect results when used with order_by for pandas, pyarrow, and polars#3292

Merged
MarcoGorelli merged 16 commits intonarwhals-dev:mainfrom
MarcoGorelli:with-row-index-fix
Nov 10, 2025
Merged

fix: with_row_index was returning incorrect results when used with order_by for pandas, pyarrow, and polars#3292
MarcoGorelli merged 16 commits intonarwhals-dev:mainfrom
MarcoGorelli:with-row-index-fix

Conversation

@MarcoGorelli
Copy link
Member

closes #3289

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

  • 💾 Refactor
  • ✨ Feature
  • 🐛 Bug Fix
  • 🔧 Optimization
  • 📝 Documentation
  • ✅ Test
  • 🐳 Other

Related issues

  • Related issue #<issue number>
  • Closes #<issue number>

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 8, 2025 08:36
@dangotbanned dangotbanned added fix polars Issue is related to polars backend pyarrow Issue is related to pyarrow backend pandas-like Issue is related to pandas-like backends labels Nov 8, 2025
@FBruzzesi FBruzzesi changed the title fix: with_row_index was returning incorrect results when used with … …order_by for pandas, pyarrow, and polars fix: with_row_index was returning incorrect results when used with order_by for pandas, pyarrow, and polars Nov 9, 2025
dangotbanned added a commit that referenced this pull request Nov 9, 2025
@MarcoGorelli
Copy link
Member Author

shipping then, thanks for your help and review! 🙏

@MarcoGorelli MarcoGorelli merged commit 602b007 into narwhals-dev:main Nov 10, 2025
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix pandas-like Issue is related to pandas-like backends polars Issue is related to polars backend pyarrow Issue is related to pyarrow backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect results for with_row_index(order_by=...)

2 participants