Skip to content

Modify PandasModel.removeRows() to work with an arbitrary row selection - #13

Open
viktorvanwijk wants to merge 3 commits into
masterfrom
9-revise-pandasmodelremoverows-to-support-arbitrary-row-selection
Open

Modify PandasModel.removeRows() to work with an arbitrary row selection#13
viktorvanwijk wants to merge 3 commits into
masterfrom
9-revise-pandasmodelremoverows-to-support-arbitrary-row-selection

Conversation

@viktorvanwijk

Copy link
Copy Markdown
Owner

Closes #9

@viktorvanwijk viktorvanwijk self-assigned this Apr 30, 2024
@viktorvanwijk viktorvanwijk linked an issue Apr 30, 2024 that may be closed by this pull request
Comment thread gui.py
self.beginRemoveRows(parent, row, row + count - 1)
for _ in range(count):
self._data.drop(self._data.index[row], inplace=True)
def removeRows(self, rows, count, parent=QModelIndex()):

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not the nicest thing to do maybe, as it differs from the behaviour of QAbstractTableModel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Revise PandasModel.removeRows to support arbitrary row selection

1 participant