Feature Type
-
[x] Adding new functionality to pandas
-
[ ] Changing existing functionality in pandas
-
[ ] Removing existing functionality in pandas
Problem Description
I hope this function can use to keep two or more dataframe same like PyQt View and Model (if I revise model view will change )
Feature Description
from typing import Callable
class Index(): def init(self,column = -1,row = -1): self.column = column self.row = row def check(self,reviseRange): """if self.column,self.index in range return True""" return True class dataframe: def init(self): self.handlers = {Index:Callable}#index,function def _trigger(self,reviseRange): """use @ to adapt iloc loc setitem """ for i,f in self.handlers.items(): if i.check(): f(reviseRange)
Alternative Solutions
pyqt singal
Additional Context
No response