DataFrameHolderMixin
Sub classes¶
| Name | Children | Inherits |
|---|---|---|
| CategoryModel cutepandas.pandasmodels.categorymodel One row per category of a column, with its code and number of rows, read-only. |
||
| DataFrameModel cutepandas.pandasmodels.dataframemodel Virtual table model for pandas, pyarrow and polars frames. |
||
| VerticalHeaderModel cutepandas.pandasmodels.dataframemodel Row labels: one column per pandas index level; row numbers for other backends. |
||
| HorizontalHeaderModel cutepandas.pandasmodels.dataframemodel Column labels: one row per pandas column level; one row for other backends. |
||
| SchemaModel cutepandas.pandasmodels.schemamodel One row per column of a frame (any backend), read-only. |
||
| PandasIndexListModel cutepandas.pandasmodels.pandascolumnlistmodel Index levels of a pandas frame: name, index type, monotonic (editable). |
||
| CornerLevelModel cutepandas.pandaswidgets.gridviewer Top-left corner model showing pandas index & column level names. |
🛈 DocStrings¶
Model mixin: keeps self.df in a (possibly shared) DataFrameHolder.
Call _init_holder from __init__ after the Qt base class is initialized.
Assigning self.df replaces the holder's frame; the model itself is then expected
to emit the matching signals (e.g. inside change_layout()), while all other
models of the holder are reset.