[X] I have checked that this enhancement has not already been requested
How would you categorize this request. You can select multiple if not sure
Developer ergonomics (defaults, error messages)
Enhancement Description
Annotating a dataframe or expression with metadata.
I'm spitballing some ideas about annotating a dataframe or expression with metadata. looking for feedback.
I'm thinking about how to make configuring buckaroo easier. (but this applies to plotting liraries too). Is there a way to add metadata to expressions or dataframes?
I would like to be able to write code like this in a notebook
I want to use the buckaroo namespace to append metadata to the expression that doesn't affect polars at all, but Buckaroo can access it later.
In the above example the date column would be formatted with a special format string, and the open column would be colored based on if the open for this day was higher or lower than the previous day.
is this possible? I don't think so, but I haven't dived into extensions that hard.
If Polars doesn't want to give an explicit metadata facility, could it at least keep the query/expression graph around in the resulting dataframe. This way I think I could pick the correct elements off the expression json.
Checks
How would you categorize this request. You can select multiple if not sure
Developer ergonomics (defaults, error messages)
Enhancement Description
Annotating a dataframe or expression with metadata. I'm spitballing some ideas about annotating a dataframe or expression with metadata. looking for feedback.
I'm thinking about how to make configuring buckaroo easier. (but this applies to plotting liraries too). Is there a way to add metadata to expressions or dataframes?
I would like to be able to write code like this in a notebook
I want to use the
buckaroo
namespace to append metadata to the expression that doesn't affect polars at all, but Buckaroo can access it later.In the above example the
date
column would be formatted with a special format string, and the open column would be colored based on if the open for this day was higher or lower than the previous day.The alternative would be typing things like
Pseudo Code Implementation
No response
Prior Art
N/A