Skip to content

Conversation

skalwaghe-56
Copy link
Contributor


This adds a regression test for GH#54409, where .loc failed when
indexing a tz-aware DateTimeIndex with only NaT. The bug is already
fixed on main, and this test ensures it does not regress.

@skalwaghe-56
Copy link
Contributor Author

@jbrockmendel Kindly request you to check it :)

@skalwaghe-56
Copy link
Contributor Author

@jbrockmendel Its ready for the review!

@skalwaghe-56
Copy link
Contributor Author

Hey, @jbrockmendel Rebased and all checks passed!

@jorisvandenbossche jorisvandenbossche added Testing pandas testing functions or related to the test suite Indexing Related to indexing on series/frames, not to indexes themselves labels Sep 5, 2025
@skalwaghe-56
Copy link
Contributor Author

@jorisvandenbossche Let me know if these changes looks good to you!

@skalwaghe-56 skalwaghe-56 force-pushed the test-fix-54409 branch 2 times, most recently from 00f7437 to 93aef61 Compare September 8, 2025 14:01
@skalwaghe-56
Copy link
Contributor Author

@jorisvandenbossche Kindly request you to check and let me know!

@skalwaghe-56 skalwaghe-56 force-pushed the test-fix-54409 branch 4 times, most recently from 5b7f988 to 6dc98c0 Compare September 9, 2025 10:00
@jbrockmendel jbrockmendel merged commit 9c4b72f into pandas-dev:main Sep 10, 2025
38 checks passed
@jbrockmendel
Copy link
Member

thanks @skalwaghe-56

@skalwaghe-56 skalwaghe-56 deleted the test-fix-54409 branch September 11, 2025 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Indexing Related to indexing on series/frames, not to indexes themselves Testing pandas testing functions or related to the test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: loc fails with tz_aware DateTimeIndex

3 participants