GUI.DataFrameModel
index
c:\users\adamj\onedrive\pulpit\olx-scrapper\src\gui\dataframemodel.py

 
Modules
       
PyQt5.QtCore
pandas

 
Classes
       
PyQt5.QtCore.QAbstractTableModel(PyQt5.QtCore.QAbstractItemModel)
DataFrameModel

 
class DataFrameModel(PyQt5.QtCore.QAbstractTableModel)
    DataFrameModel(df: Optional[pandas.core.frame.DataFrame] = Empty DataFrame
Columns: []
Index: [], parent: Optional[PyQt5.QtCore.QAbstractTableModel] = None) -> None
 

 
 
Method resolution order:
DataFrameModel
PyQt5.QtCore.QAbstractTableModel
PyQt5.QtCore.QAbstractItemModel
PyQt5.QtCore.QObject
sip.wrapper
sip.simplewrapper
builtins.object

Methods defined here:
__init__(self, df: Optional[pandas.core.frame.DataFrame] = Empty DataFrame Columns: [] Index: [], parent: Optional[PyQt5.QtCore.QAbstractTableModel] = None) -> None
Initialize the DataFrameModel
:param df: The DataFrame to be displayed
:param parent: The parent QObject
columnCount(self, parent: PyQt5.QtCore.QModelIndex = <PyQt5.QtCore.QModelIndex object at 0x000001D505AC8350>) -> int
Get the number of columns in the model
:param parent: Parent index
:return: Number of columns in the model
data(self, index: PyQt5.QtCore.QModelIndex, role: int = 0) -> Union[str, PyQt5.QtCore.QVariant]
Get the data for the given index and role
:param index: Index to get the data for
:param role: Role of the data
:return: Data for the given index and role
data_frame(self) -> pandas.core.frame.DataFrame
Get the DataFrame being displayed
:return: DataFrame being displayed
headerData(self, section: int, orientation: PyQt5.QtCore.Qt.Orientation, role: int = 0) -> Union[str, PyQt5.QtCore.QVariant]
Get the header data for the given section, orientation and role
:param section: Section to get the header data for
:param orientation: Orientation of the header
:param role: Role of the header data
:return: Header data
removeRow(self, row: int, parent: Optional[PyQt5.QtCore.QModelIndex] = <PyQt5.QtCore.QModelIndex object at 0x000001D505AC8270>) -> bool
Remove the row at the given index
:param row: Index of the row to remove
:param parent: Parent index
:return: If the row was removed
reset_sorting(self) -> None
Reset the sorting of the model
:return:
roleNames(self) -> dict
Get the roles for the model
:return: Dictionary of roles
rowCount(self, parent: PyQt5.QtCore.QModelIndex = <PyQt5.QtCore.QModelIndex object at 0x000001D505AC80B0>) -> int
Get the number of rows in the model
:param parent: Parent index
:return: Number of rows in the model
set_data_frame(self, dataframe: pandas.core.frame.DataFrame) -> None
Set the DataFrame to be displayed
:param dataframe: DataFrame to be displayed
:return:
sort(self, column: int, order: Optional[PyQt5.QtCore.Qt.SortOrder] = 0) -> None
Sort the model by the given column and order
:param column: Column to sort by
:param order: Order to sort in
:return:

Data descriptors defined here:
dataFrame
Get the DataFrame being displayed
:return: DataFrame being displayed

Data and other attributes defined here:
DtypeRole = 1256
ValueRole = 1257

Methods inherited from PyQt5.QtCore.QAbstractTableModel:
beginInsertColumns(...)
beginInsertRows(...)
beginMoveColumns(...)
beginMoveRows(...)
beginRemoveColumns(...)
beginRemoveRows(...)
beginResetModel(...)
changePersistentIndex(...)
changePersistentIndexList(...)
childEvent(...)
connectNotify(...)
createIndex(...)
customEvent(...)
decodeData(...)
disconnectNotify(...)
dropMimeData(...)
dropMimeData(self, data: Optional[QMimeData], action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool
encodeData(...)
endInsertColumns(...)
endInsertRows(...)
endMoveColumns(...)
endMoveRows(...)
endRemoveColumns(...)
endRemoveRows(...)
endResetModel(...)
flags(...)
flags(self, index: QModelIndex) -> Qt.ItemFlags
hasChildren(...)
index(...)
index(self, row: int, column: int, parent: QModelIndex = QModelIndex()) -> QModelIndex
isSignalConnected(...)
parent(...)
parent(self) -> Optional[QObject]
persistentIndexList(...)
receivers(...)
resetInternalData(...)
sender(...)
senderSignalIndex(...)
sibling(...)
sibling(self, row: int, column: int, idx: QModelIndex) -> QModelIndex
timerEvent(...)

Methods inherited from PyQt5.QtCore.QAbstractItemModel:
buddy(...)
buddy(self, index: QModelIndex) -> QModelIndex
canDropMimeData(...)
canDropMimeData(self, data: Optional[QMimeData], action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool
canFetchMore(...)
canFetchMore(self, parent: QModelIndex) -> bool
checkIndex(...)
checkIndex(self, index: QModelIndex, options: Union[QAbstractItemModel.CheckIndexOptions, QAbstractItemModel.CheckIndexOption] = QAbstractItemModel.CheckIndexOption.NoOption) -> bool
columnsAboutToBeInserted = <unbound PYQT_SIGNAL columnsAboutToBeInserted(QModelIndex,int,int)> columnsAboutToBeMoved = <unbound PYQT_SIGNAL columnsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int)> columnsAboutToBeRemoved = <unbound PYQT_SIGNAL columnsAboutToBeRemoved(QModelIndex,int,int)> columnsInserted = <unbound PYQT_SIGNAL columnsInserted(QModelIndex,int,int)> columnsMoved = <unbound PYQT_SIGNAL columnsMoved(QModelIndex,int,int,QModelIndex,int)> columnsRemoved = <unbound PYQT_SIGNAL columnsRemoved(QModelIndex,int,int)> dataChanged = <unbound PYQT_SIGNAL dataChanged(QModelIndex,QModelIndex,QVector<int>)>
fetchMore(...)
fetchMore(self, parent: QModelIndex)
hasIndex(...)
hasIndex(self, row: int, column: int, parent: QModelIndex = QModelIndex()) -> bool
headerDataChanged = <unbound PYQT_SIGNAL headerDataChanged(Qt::Orientation,int,int)>
insertColumn(...)
insertColumn(self, column: int, parent: QModelIndex = QModelIndex()) -> bool
insertColumns(...)
insertColumns(self, column: int, count: int, parent: QModelIndex = QModelIndex()) -> bool
insertRow(...)
insertRow(self, row: int, parent: QModelIndex = QModelIndex()) -> bool
insertRows(...)
insertRows(self, row: int, count: int, parent: QModelIndex = QModelIndex()) -> bool
itemData(...)
itemData(self, index: QModelIndex) -> Dict[int, Any]
layoutAboutToBeChanged = <unbound PYQT_SIGNAL layoutAboutToBeChanged(QLis...odelIndex>,QAbstractItemModel::LayoutChangeHint)> layoutChanged = <unbound PYQT_SIGNAL layoutChanged(QList<QPersis...odelIndex>,QAbstractItemModel::LayoutChangeHint)>
match(...)
match(self, start: QModelIndex, role: int, value: Any, hits: int = 1, flags: Union[Qt.MatchFlags, Qt.MatchFlag] = Qt.MatchStartsWith|Qt.MatchWrap) -> List[QModelIndex]
mimeData(...)
mimeData(self, indexes: Iterable[QModelIndex]) -> Optional[QMimeData]
mimeTypes(...)
mimeTypes(self) -> List[str]
modelAboutToBeReset = <unbound PYQT_SIGNAL modelAboutToBeReset()> modelReset = <unbound PYQT_SIGNAL modelReset()>
moveColumn(...)
moveColumn(self, sourceParent: QModelIndex, sourceColumn: int, destinationParent: QModelIndex, destinationChild: int) -> bool
moveColumns(...)
moveColumns(self, sourceParent: QModelIndex, sourceColumn: int, count: int, destinationParent: QModelIndex, destinationChild: int) -> bool
moveRow(...)
moveRow(self, sourceParent: QModelIndex, sourceRow: int, destinationParent: QModelIndex, destinationChild: int) -> bool
moveRows(...)
moveRows(self, sourceParent: QModelIndex, sourceRow: int, count: int, destinationParent: QModelIndex, destinationChild: int) -> bool
removeColumn(...)
removeColumn(self, column: int, parent: QModelIndex = QModelIndex()) -> bool
removeColumns(...)
removeColumns(self, column: int, count: int, parent: QModelIndex = QModelIndex()) -> bool
removeRows(...)
removeRows(self, row: int, count: int, parent: QModelIndex = QModelIndex()) -> bool
revert(...)
revert(self)
rowsAboutToBeInserted = <unbound PYQT_SIGNAL rowsAboutToBeInserted(QModelIndex,int,int)> rowsAboutToBeMoved = <unbound PYQT_SIGNAL rowsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int)> rowsAboutToBeRemoved = <unbound PYQT_SIGNAL rowsAboutToBeRemoved(QModelIndex,int,int)> rowsInserted = <unbound PYQT_SIGNAL rowsInserted(QModelIndex,int,int)> rowsMoved = <unbound PYQT_SIGNAL rowsMoved(QModelIndex,int,int,QModelIndex,int)> rowsRemoved = <unbound PYQT_SIGNAL rowsRemoved(QModelIndex,int,int)>
setData(...)
setData(self, index: QModelIndex, value: Any, role: int = Qt.ItemDataRole.EditRole) -> bool
setHeaderData(...)
setHeaderData(self, section: int, orientation: Qt.Orientation, value: Any, role: int = Qt.ItemDataRole.EditRole) -> bool
setItemData(...)
setItemData(self, index: QModelIndex, roles: Dict[int, Any]) -> bool
span(...)
span(self, index: QModelIndex) -> QSize
submit(...)
submit(self) -> bool
supportedDragActions(...)
supportedDragActions(self) -> Qt.DropActions
supportedDropActions(...)
supportedDropActions(self) -> Qt.DropActions

Data and other attributes inherited from PyQt5.QtCore.QAbstractItemModel:
CheckIndexOption = <enum 'CheckIndexOption'>
An enumeration.
CheckIndexOptions = <class 'PyQt5.QtCore.QAbstractItemModel.CheckIndexOptions'>
QAbstractItemModel.CheckIndexOptions()
QAbstractItemModel.CheckIndexOptions(f: Union[QAbstractItemModel.CheckIndexOptions, QAbstractItemModel.CheckIndexOption])
QAbstractItemModel.CheckIndexOptions(a0: QAbstractItemModel.CheckIndexOptions)
HorizontalSortHint = 2
LayoutChangeHint = <class 'PyQt5.QtCore.QAbstractItemModel.LayoutChangeHint'>
NoLayoutChangeHint = 0
VerticalSortHint = 1

Methods inherited from PyQt5.QtCore.QObject:
__getattr__(...)
__getattr__(self, name: Optional[str]) -> Any
blockSignals(...)
blockSignals(self, b: bool) -> bool
children(...)
children(self) -> List[QObject]
deleteLater(...)
deleteLater(self)
destroyed = <unbound PYQT_SIGNAL destroyed(QObject*)>
disconnect(...)
disconnect(a0: QMetaObject.Connection) -> bool
disconnect(self)
dumpObjectInfo(...)
dumpObjectInfo(self)
dumpObjectTree(...)
dumpObjectTree(self)
dynamicPropertyNames(...)
dynamicPropertyNames(self) -> List[QByteArray]
event(...)
event(self, a0: Optional[QEvent]) -> bool
eventFilter(...)
eventFilter(self, a0: Optional[QObject], a1: Optional[QEvent]) -> bool
findChild(...)
findChild(self, type: Type[QObjectT], name: Optional[str] = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObjectT
findChild(self, types: Tuple[Type[QObjectT], ...], name: Optional[str] = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObjectT
findChildren(...)
findChildren(self, type: Type[QObjectT], name: Optional[str] = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObjectT]
findChildren(self, types: Tuple[Type[QObjectT], ...], name: Optional[str] = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObjectT]
findChildren(self, type: Type[QObjectT], regExp: QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObjectT]
findChildren(self, types: Tuple[Type[QObjectT], ...], regExp: QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObjectT]
findChildren(self, type: Type[QObjectT], re: QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObjectT]
findChildren(self, types: Tuple[Type[QObjectT], ...], re: QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObjectT]
inherits(...)
inherits(self, classname: Optional[str]) -> bool
installEventFilter(...)
installEventFilter(self, a0: Optional[QObject])
isWidgetType(...)
isWidgetType(self) -> bool
isWindowType(...)
isWindowType(self) -> bool
killTimer(...)
killTimer(self, id: int)
metaObject(...)
metaObject(self) -> Optional[QMetaObject]
moveToThread(...)
moveToThread(self, thread: Optional[QThread])
objectName(...)
objectName(self) -> str
objectNameChanged = <unbound PYQT_SIGNAL objectNameChanged(QString)>
property(...)
property(self, name: Optional[str]) -> Any
pyqtConfigure(...)
QObject.pyqtConfigure(...)
 
Each keyword argument is either the name of a Qt property or a Qt signal.
For properties the property is set to the given value which should be of an
appropriate type.
For signals the signal is connected to the given value which should be a
callable.
removeEventFilter(...)
removeEventFilter(self, a0: Optional[QObject])
setObjectName(...)
setObjectName(self, name: Optional[str])
setParent(...)
setParent(self, a0: Optional[QObject])
setProperty(...)
setProperty(self, name: Optional[str], value: Any) -> bool
signalsBlocked(...)
signalsBlocked(self) -> bool
startTimer(...)
startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) -> int
thread(...)
thread(self) -> Optional[QThread]
tr(...)
tr(self, sourceText: Optional[str], disambiguation: Optional[str] = None, n: int = -1) -> str

Data descriptors inherited from PyQt5.QtCore.QObject:
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from PyQt5.QtCore.QObject:
staticMetaObject = <PyQt5.QtCore.QMetaObject object>

Static methods inherited from sip.simplewrapper:
__new__(*args, **kwargs) from sip.wrappertype
Create and return a new object.  See help(type) for accurate signature.

Data descriptors inherited from sip.simplewrapper:
__dict__

 
Data
        Optional = typing.Optional
Union = typing.Union