-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
HDFStore.append fails when appending dataframe with empty string column for which min_itemsize < 8 #12242
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
Comments
So it looks like this comes from
The In [12]: np.array([b'', b''], dtype='S0')
Out[12]:
array([b'', b''],
dtype='|S1') # length 1 Looks like a numpy bug maybe? Either way, we can work around by changing this line to itemsize = max(1, lib.max_len_string_array(com._ensure_object(data.ravel()))) @amcpherson thanks for the report. Are you interested in submitting a Pull Request with that fix and a test? |
i can do a pull request, cant guarantee how soon though
|
This still hasn't been factored in. |
hence the open issue |
Reproduced as follows:
Does not raise unless all values in a column are empty strings. A workaround is to set min_itemsize to 8 or higher.
Version information:
The text was updated successfully, but these errors were encountered: