Skip to content

Conversation

@dangotbanned
Copy link
Member

@dangotbanned dangotbanned commented Aug 1, 2025

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

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

Related issues

Checklist

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

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

Upstream:

- Noticed while looking into #2879
- Related #2891
@dangotbanned dangotbanned added fix bug: it raises an error but shouldn't pandas-like Issue is related to pandas-like backends labels Aug 1, 2025
@dangotbanned
Copy link
Member Author

Note

All of the test failures are unrelated

See https://discord.com/channels/1235257048170762310/1284535800633229312/1400754991249227797

@dangotbanned dangotbanned marked this pull request as ready for review August 1, 2025 12:27
Comment on lines +122 to +131
elif implementation.is_modin():
# NOTE: Function moved + deprecated (0.26.0), then old path removed (0.31.0)
# https://github.com/modin-project/modin/pull/6806
# https://github.com/modin-project/modin/pull/7274
if implementation._backend_version() >= (0, 26, 0):
from modin.pandas.io import from_arrow as mpd_from_arrow
else: # pragma: no cover
from modin.pandas.utils import (
from_arrow as mpd_from_arrow, # pyright: ignore[reportAttributeAccessIssue]
)
Copy link
Member Author

Choose a reason for hiding this comment

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

I know ordering the branches the other way would appease coverage

They're this way around so that the known type comes before Unknown

Copy link
Member

@FBruzzesi FBruzzesi left a comment

Choose a reason for hiding this comment

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

Thanks @dangotbanned

@dangotbanned dangotbanned merged commit 7d5a457 into main Aug 2, 2025
31 checks passed
@dangotbanned dangotbanned deleted the fix-modin-from-arrow branch August 2, 2025 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug: it raises an error but shouldn't fix pandas-like Issue is related to pandas-like backends

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants