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

Storing Arrays in a DataFrame column #1157

Closed
DrFlamingoo opened this issue Feb 6, 2017 · 2 comments
Closed

Storing Arrays in a DataFrame column #1157

DrFlamingoo opened this issue Feb 6, 2017 · 2 comments

Comments

@DrFlamingoo
Copy link

Hi all,
awesome work on the DataFrames, I really love it and use it constantly for my phd work. I often have big datasets, where each row corresponds to a point in my measurements.
I am currently dealing with a vectors in different coordinate systems. Its quite a long way from the raw data until the reciprocal space vector is found, and that is why I want to store it in a SVector{3,Float64} type from the StaticArrays package, along with the transformation matrix SMatrix{3,3}.
As far as I understand, this is currently not possible. What is your plan for this kind of situation? Create a column for each index in my scripts, and all the overhead related to sorting stuff into those columns?
Thanks, Max

@nalimilan
Copy link
Member

See #1119. You can already store any vector as a column using the constructor DataFrame([col1, col2], [:col1, :col2]).

@DrFlamingoo
Copy link
Author

Thanks, got it working.

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