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

Add conversion to/from NumPy structured arrays #129

Merged
merged 1 commit into from
Oct 20, 2015

Conversation

stefanv
Copy link
Contributor

@stefanv stefanv commented Oct 13, 2015

Note that this PR also removes t.matrix, which returned a somewhat broken matrix object (matrices are not recommended for use, and in this case the column dtype was simply being taken from the first column, turning numbers into strings, etc.)

@SamLau95
Copy link
Member

Looks good! What's the most common use-case for this?

@stefanv
Copy link
Contributor Author

stefanv commented Oct 20, 2015

I feel it's important to have bridges to well established tools that folks are familiar with already. NumPy is certainly a de-facto standard! Once you have a numpy array, you can save the file to disk for example, and load it back up. A whole lot of standard tools become available to you.

@SamLau95
Copy link
Member

Cool!

SamLau95 added a commit that referenced this pull request Oct 20, 2015
Add conversion to/from NumPy structured arrays
@SamLau95 SamLau95 merged commit 18fe855 into data-8:master Oct 20, 2015
SamLau95 added a commit that referenced this pull request Oct 21, 2015
In #129 we removed Table.matrix from the API. However, Table.bin still
used the method. This fixes Table.bin. There are no other places that I
know of that use Table.matrix, so hopefully this is the last time we'll
have to do something like this.
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

Successfully merging this pull request may close these issues.

None yet

2 participants