Skip to content
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

Add string as fallback index type when writing data #904

Merged
merged 3 commits into from
Mar 12, 2024

Conversation

RobbeSneyders
Copy link
Member

pa.from_numpy_dtype fails when passing an object dtype, which Dask uses when the dtype is not explicitly known. I propose to fall back on string if this is the case. This will probably be correct for the index column in most cases when the dtype is unknown, and non-breaking in most other cases.

Copy link
Contributor

@mrchtr mrchtr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @RobbeSneyders!

@mrchtr mrchtr merged commit acb6d0a into main Mar 12, 2024
8 of 9 checks passed
@mrchtr mrchtr deleted the bugfix/write-object-index branch March 12, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants