Skip to content

ENH: Add a function like PYQT signal #61829

Open
@an-unimportant-person

Description

@an-unimportant-person

Feature Type

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNeeds TriageIssue that has not been reviewed by a pandas team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions