SortableViewerMixin
Sub classes¶
| Name | Children | Inherits |
|---|---|---|
| DataFrameViewer cutepandas.pandaswidgets.dataframeviewer Data table with synced column / index headers (MultiIndex spans for pandas). |
||
| GridDataFrameViewer cutepandas.pandaswidgets.gridviewer Four-table 2x2 grid viewer with flush corner, column header, index, and data. |
||
| SimpleDataFrameViewer cutepandas.pandaswidgets.simpledataframeviewer Lightweight single-table viewer backed by `DataFrameModel`. |
🛈 DocStrings¶
Viewer sort API delegating to self.sorter (a SortController).
The viewer declares the sort_requested / sorting_changed signals and forwards
the controller's (_connect_sorter()).
Source code in src/cutepandas/pandaswidgets/sortcontroller.py
cancel_sort
¶
clear_sort
¶
get_sort_state
¶
is_sorting
¶
set_sort_state
¶
Remember the current sort (the next click on column reverses it).
Replacing the frame resets it; an application that sorts on
sort_requested and then sets the sorted frame restores it here.
Source code in src/cutepandas/pandaswidgets/sortcontroller.py
sort_by
¶
Sort by a column position (see SortController.sort_by).