This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import namedtuple | |
def seriesToTuple(s,name="IndexTuple"): | |
""" | |
Converts pandas Series `s` to a named tuple. | |
Args: | |
s (pd.Series): pandas Series object to convert | |
name (str): name of the resulting NamedTuple class |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PyQt4.QtCore as q | |
import PyQt4.QtGui as qt | |
class BindingEndpoint(object): | |
""" | |
Data object that contains the triplet of: getter, setter and change notification signal, | |
as well as the object instance and it's memory id to which the binding triplet belongs. | |
Parameters: | |
instance -- the object instance to which the getter, setter and changedSignal belong |