ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
enlighten.Plugins.TableModel.TableModel Class Reference

A custom QAbstractTableModel taking a Pandas DataFrame as input. More...

Inheritance diagram for enlighten.Plugins.TableModel.TableModel:
[legend]
Collaboration diagram for enlighten.Plugins.TableModel.TableModel:
[legend]

Public Member Functions

 __init__ (self, df)
 
 columnCount (self, index)
 
 data (self, index, role)
 
 headerData (self, section, orientation, role)
 
 rowCount (self, index)
 

Protected Attributes

 _df = df
 

Detailed Description

A custom QAbstractTableModel taking a Pandas DataFrame as input.

See also
https://www.mfitzp.com/tutorials/qtableview-modelviews-numpy-pandas/

Constructor & Destructor Documentation

◆ __init__()

enlighten.Plugins.TableModel.TableModel.__init__ ( self,
df )

Member Function Documentation

◆ columnCount()

enlighten.Plugins.TableModel.TableModel.columnCount ( self,
index )

◆ data()

enlighten.Plugins.TableModel.TableModel.data ( self,
index,
role )

◆ headerData()

enlighten.Plugins.TableModel.TableModel.headerData ( self,
section,
orientation,
role )

◆ rowCount()

enlighten.Plugins.TableModel.TableModel.rowCount ( self,
index )

Member Data Documentation

◆ _df

enlighten.Plugins.TableModel.TableModel._df = df
protected

The documentation for this class was generated from the following file: