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

Comment From: jbrockmendel

Quick explanation for those of us who don’t know what pyqt signal is?

Comment From: an-unimportant-person

it is a characteristic that content in widget will changed when model changed . that was powered by pyqtsignal ,when model changed ,model will emit "DataChanged" signal to update the data in widget(view).

Comment From: jbrockmendel

I don't think that belongs in pandas, but can keep this open to get other opinions.

Comment From: mroeschke

Yes, this probably suitable for another library to implement. Thanks but closing