-
Notifications
You must be signed in to change notification settings - Fork 176
fix: Include all backends in get_native_namespace
#2608
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
Conversation
| assert nw.get_native_namespace(df["a"].to_native()) is pl | ||
| assert nw.get_native_namespace(df, df["a"].to_native()) is pl | ||
|
|
||
| def _get_expected_namespace(constructor_name: str) -> ModuleType | None: # noqa: PLR0911 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's kind of a tautology π€ but I didn't want to reuse Implementation methods
MarcoGorelli
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@FBruzzesi π₯³ I think this means we can tick off another function in #2492 |
|
d'oh we should've run the pytest tests here |
How is pyspark entering the test? narwhals/tests/translate/get_native_namespace_test.py Lines 60 to 61 in 53d55c3
Nevermind - I am dumb π₯² |
|
I added one way to solve it: 2d92f9a |

What type of PR is this? (check all applicable)
Related issues
_get_native_namespace_single_objmissing a few supported librariesΒ #2607Checklist
If you have comments or can explain your changes, please do so below