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

Easy way to create nw.Series from numpy array #754

Closed
MarcoGorelli opened this issue Aug 9, 2024 · 1 comment · Fixed by #787
Closed

Easy way to create nw.Series from numpy array #754

MarcoGorelli opened this issue Aug 9, 2024 · 1 comment · Fixed by #787
Labels
enhancement New feature or request

Comments

@MarcoGorelli
Copy link
Member

MarcoGorelli commented Aug 9, 2024

We may need a convenience function outside of the Polars API for this, such as:

s: nw.Series
m: np.ndarray
new_series = nw.new_series(m, native_namespace=s.__native_namespace__())
@MarcoGorelli MarcoGorelli added the enhancement New feature or request label Aug 9, 2024
@FBruzzesi
Copy link
Member

Related scikit-lego PR that workaround this using nw.from_dict

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants