Skip to content

ERR: frame construction with all scalars doesn't raise when columns are provided #10856

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

Closed
jreback opened this issue Aug 19, 2015 · 1 comment
Labels
Error Reporting Incorrect or improved errors from pandas
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Aug 19, 2015

xref #9456

[39] should raise.

In [38]: pd.DataFrame({'a':0.1})
ValueError: If using all scalar values, you must pass an index

In [39]: pd.DataFrame({'a':0.1}, columns=['b'])
Out[39]:
Empty DataFrame
Columns: [b]
Index: []
@jreback jreback added Difficulty Novice Error Reporting Incorrect or improved errors from pandas labels Aug 19, 2015
@jreback jreback added this to the Next Major Release milestone Aug 19, 2015
@ajcr
Copy link
Contributor

ajcr commented Aug 30, 2015

At the pandas sprint - I can have a look at this now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Reporting Incorrect or improved errors from pandas
Projects
None yet
Development

No branches or pull requests

3 participants
@jreback @ajcr and others