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

Supporting record arrays #229

Closed
aldanor opened this issue Dec 29, 2021 · 2 comments
Closed

Supporting record arrays #229

aldanor opened this issue Dec 29, 2021 · 2 comments

Comments

@aldanor
Copy link
Contributor

aldanor commented Dec 29, 2021

I think it would be a lfie-changing feature for some projects - basically, this would enable to export data from a Vec<Struct> almost straight to a pd.DataFrame, how cool is that?

Wonder what are the thoughts on this? Has this been considered? Otherwise, I have a bit of free time and so I could probably give it a try. This would require a separate proc-macro crate (rust-numpy-derive), and it will probably require a bit of reworking the existing dtype constructs.

(A bit of pre-history: I've implemented support for numpy record arrays in pybind11 a while ago, and then I've implemented support for custom user structs type mapping in hdf5 crate via proc macros - I think adding support for recarrays here should be somewhere inbetween the two.)

@aldanor
Copy link
Contributor Author

aldanor commented Dec 29, 2021

(Aplogies for a dupe, just noticed #186)

@adamreichold
Copy link
Member

@aldanor Could you close this since it is indeed a duplicate? Thanks!

@aldanor aldanor closed this as completed Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants