Skip to content

Allow empty DataFrame in Dataset construction #698

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

Merged
merged 1 commit into from
Jan 2, 2016
Merged

Allow empty DataFrame in Dataset construction #698

merged 1 commit into from
Jan 2, 2016

Conversation

max-sixty
Copy link
Collaborator

Closes #697

@shoyer: am I missing something as to why the special case was there?

@shoyer
Copy link
Member

shoyer commented Jan 2, 2016

I guess I thought an empty DataFrame should correspond to an empty Dataset? I agree that this makes more sense, though.

@max-sixty
Copy link
Collaborator Author

The empty <-> empty does make sense actually.

I think either would be OK...

shoyer added a commit that referenced this pull request Jan 2, 2016
Allow empty DataFrame in Dataset construction
@shoyer shoyer merged commit c93d156 into pydata:master Jan 2, 2016
@shoyer
Copy link
Member

shoyer commented Jan 2, 2016

This is definitely more consistent -- for example, imagine slicing a DataFrame into different sizes, converting each group into a Dataset and then concatenation.

Thanks! You get big kudos for deleting code but adding a test :).

@max-sixty max-sixty deleted the allow-empty-dfs branch January 2, 2016 07:34
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.

2 participants