dataeval.types.DataFrameOutput¶
- class dataeval.types.DataFrameOutput(data)¶
An Output that wraps a Polars DataFrame and proxies its interface.
Attribute access, indexing, and iteration are delegated to the underlying DataFrame so instances can be used directly in DataFrame contexts.
data()andmeta()remain available alongside all DataFrame methods and properties.Subclasses pass the required DataFrame as the first positional argument and may accept additional keyword arguments.
Warning
Return-type loss on DataFrame operations
Methods delegated via
__getattr__()(e.g.filter,select,sort) return a plainpolars.DataFrame, not an instance of the subclass. Any subclass-specific attributes such ascalculation_resultsormeta()will not be available on the result.Note
Instance attribute names to avoid in subclasses
Because instance attributes shadow the proxy, do not use any of the following names for subclass
__init__parameters or attributes:columns,schema,dtypes,shape,height,width.- data()¶
Return the output data as a polars DataFrame.