E3F8 Exception on programmable deleting of selected rows() · Issue #208 · dmnfarrell/pandastable · GitHub
[go: up one dir, main page]

Skip to content

Exception on programmable deleting of selected rows() #208

@GBR-613

Description

@GBR-613

The following exception is thrown:

  File "c:\Programs\Python37\lib\site-packages\pandastable\core.py", line 488, in redraw
    self.redrawVisible(event, callback)
  File "c:\Programs\Python37\lib\site-packages\pandastable\core.py", line 470, in redrawVisible
    self.colorRows()
  File "c:\Programs\Python37\lib\site-packages\pandastable\core.py", line 581, in colorRows
    colors = rc[colname].loc[idx]
  File "c:\Programs\Python37\lib\site-packages\pandas\core\indexing.py", line 879, in __getitem__
    return self._getitem_axis(maybe_callable, axis=axis)
  File "c:\Programs\Python37\lib\site-packages\pandas\core\indexing.py", line 1099, in _getitem_axis
    return self._getitem_iterable(key, axis=axis)
  File "c:\Programs\Python37\lib\site-packages\pandas\core\indexing.py", line 1037, in _getitem_iterable
    keyarr, indexer = self._get_listlike_indexer(key, axis, raise_missing=False)
  File "c:\Programs\Python37\lib\site-packages\pandas\core\indexing.py", line 1254, in _get_listlike_indexer
    self._validate_read_indexer(keyarr, indexer, axis, raise_missing=raise_missing)

Please notice: although it occurs frequently, I don't have steadily reproduced scenario.
During the debugging, I noticed that index of self.rowcolors does not match the actual self.model.df.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0