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 cats info to column chunks, propagate through #141

Closed
wants to merge 1 commit into from

Conversation

martindurant
Copy link
Member

Enables dask to auto-read categories, but generally not a bad idea.

@@ -570,6 +571,9 @@ def write_column(f, data, selement, compression=None):
total_uncompressed_size=uncompressed_size,
total_compressed_size=compressed_size)
if cats:
# all chunks describe if they are categorical
cmd.key_value_metadata = [
parquet_thrift.KeyValue(key="fastparquet.cats", value=str(ncats))]
Copy link
Member

Choose a reason for hiding this comment

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

Do you have any interest in figuring out a solution that is not restricted to only fastparquet? Other projects might also benefit from this sort of metadata.

@martindurant
Copy link
Member Author

This PR to be restarted following the spec developed in pandas-dev/pandas#16315 . Closing for now.

@martindurant martindurant deleted the spread_cats branch July 21, 2017 15:40
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