The R-help for feather_metadata
states "Returns the dimensions, field names, and types; and optional dataset description."
@hrbrmstr Kindly posted a PR to answer this SO question and make it possible to add a dataset description to a feather file from R.
I'd like to know if it is possible to read (and write) such a dataset description in python / pandas using feather.read_dataframe
and feather.write_dataframe
as well? I searched the documentation but couldn't find any information about this. It was hoping something like the following might work:
import feather
import pandas as pd
dat = pd.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6]})
dat._metadata = "A dataset description ..."
feather.write_dataframe(dat, "pydf.feather")
Or else perhaps:
feather.write_dataframe(dat, "pydf.feather", "A dataset description ...")