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

Closed
jreback opened this Issue Aug 19, 2015 · 1 comment

Comments

Projects
None yet
2 participants
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 added this to the Next Major Release milestone Aug 19, 2015

Contributor

ajcr commented Aug 30, 2015

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

@jreback jreback modified the milestone: 0.17.0, Next Major Release Aug 31, 2015

jreback closed this in #10943 Sep 2, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment