Data#
DataAdapter#
- class gufo.data.adapter.DataAdapter(data)[source]#
Bases:
objectWraps any supported input data into a common interface.
Marks never receive raw DataFrames or dicts. They call DataAdapter.resolve(key) and get back a numpy array.
- Supported input types:
pandas.DataFrame — column access by string key polars.DataFrame — column access by string key (optional dependency) dict — key access None — no bound data; x/y must be arrays/lists directly
- property raw_data#
The original data object passed to the adapter.
- property data_type#
String identifying the data backend: ‘dataframe’, ‘polars’, ‘dict’, or ‘none’.