You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importpandasimportarrayx=array.array('i', range(10))
pdf=pandas.DataFrame.from_items([('a', x)])
# fails with:# ValueError: If use all scalar values, must pass index
Also, since x has a __len__ may be the error message should not refer to a scalar.
Explicit casting to numpy arrays is a workaround, but it would seem convenient to have it done within the constructor for DataFrame: