def data(self, index, role=Qt.DisplayRole):
        if role not in Qt.DisplayRole:
            return QVariant()
        
        if not index.isValid():
            return QVariant()
        
        col = self.df.ix[:,index.column()] # get a column slice first to get the right data type
        elm = col[index.row()]
        #elm = self.df.ix[index.row(),index.column()]
        
        if self.df.columns[index.column()] in self.columnFormat.keys():
            return QVariant(self.columnFormat[self.df.columns[index.column()]] % elm )
        else:
            return QVariant(str(elm))
dataset/ETHPy150Open cmorgan/trading-with-python/lib/qtpandas.py/DataFrameModel.data/operator `!=` -> `not in`