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

Deprecate native_namespace in favour of backend in IO functions #1888

Closed
MarcoGorelli opened this issue Jan 28, 2025 · 0 comments · Fixed by #1931
Closed

Deprecate native_namespace in favour of backend in IO functions #1888

MarcoGorelli opened this issue Jan 28, 2025 · 0 comments · Fixed by #1931

Comments

@MarcoGorelli
Copy link
Member

native_namespace is annoyingly long, and retrieving native namespaces can be tedious

I think from_dict (and other IO functions) could have a backend: ModuleType | Implementation | EagerBackend argument, so all of the following could be supported:

data = {'a': [1,2,3], 'b': [4,5,6]}

nw.from_dict(data, backend=pyarrow)
nw.from_dict(data, backend='pyarrow')
nw.from_dict(data, backend=nw.Implementation.PYARROW)

EagerBackend could be Literal['pandas', 'polars', 'pyarrow']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant