Open toobaz opened 7 years ago
This is similar to #12242 , but the cause seems different.
this is a fixed store, there is no concept of column names. that said, you might be able to provide a better error msg.
this is a fixed store, there is no concept of column names
What I mean is just that "the column [V1]
" (see my last example) is informative, while "in [values_block_1] column
" is not (regardless of what is in the store).
Working on it
From the comment above: "Notice that the error is even different if you try with chunk = pd.DataFrame({'V1':[7, 4.5], 'data': [3, 5]}), which results in ValueError: invalid combinate of [values_axes] on appending data [name->values_block_1,cname->values_block_1,dtype->float64,kind->float,shape->(1, 2)] vs current table [name->values_block_1,cname->values_block_1,dtype->bytes8,kind->string,shape->None]."
The two test cases:
Are raising two different errors from two different locations. The first if failing a column validation in validate_col, trying to fit 'nan' into a column size 1. The second is failing table validation because of a data type mismatch.
I'm not sure how to proceed with this.
Were you able to make any progress with this?
take
Code Sample, a copy-pastable example if possible
Problem description
The error message is confusing (in particular when you ignore the fact that your data contains
None
) - it doesn't even provide the right column name.Expected Output
Something analogous to
Notice that the error is even different if you try with
chunk = pd.DataFrame({'V1':[7, 4.5], 'data': [3, 5]})
, which results inValueError: invalid combinate of [values_axes] on appending data [name->values_block_1,cname->values_block_1,dtype->float64,kind->float,shape->(1, 2)] vs current table [name->values_block_1,cname->values_block_1,dtype->bytes8,kind->string,shape->None]
.Output of
pd.show_versions()