We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Related: pandas-dev/pandas#20521
What the general thoughts are to use DataFrame.attrs and Series.attrs for reading and writing metadata to/from parquet?
For example, here is how the metadata would be written:
pdf = pandas.DataFrame({"a": [1]}) pdf.attrs = {"name": "my custom dataset"} pdf.a.attrs = {"long_name": "Description about data", "nodata": -1, "units": "metre"} pdf.to_parquet("file.parquet")
Then, when loading in the data:
pdf = pandas.read_parquet("file.parquet") pdf.attrs
{"name": "my custom dataset"}
pdf.a.attrs
{"long_name": "Description about data", "nodata": -1, "units": "metre"}
Reporter: Alan Snow
Note: This issue was originally created as ARROW-12823. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered:
Alan Snow: Seems like writing metadata could happen in get_column_metadata
Possibly add an "attrs" item so it doesn't conflict with "metadata".
Sorry, something went wrong.
feat: add attribute for pandas column attrs for apache#28558
18e77a1
pandas
attrs
No branches or pull requests
Related: pandas-dev/pandas#20521
What the general thoughts are to use DataFrame.attrs and Series.attrs for reading and writing metadata to/from parquet?
For example, here is how the metadata would be written:
Then, when loading in the data:
{"name": "my custom dataset"}
{"long_name": "Description about data", "nodata": -1, "units": "metre"}
Reporter: Alan Snow
Note: This issue was originally created as ARROW-12823. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: