Module Expr Str ImportFrom alias alias alias alias alias ImportFrom alias alias alias alias alias alias alias alias alias alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body If CompareNotEq NameLoad AttributeLoad NameLoad attr body Return Call NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body TryExcept body Return SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index NameLoad handlers ExceptHandler type TupleLoad NameLoad body Return Call NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body TryExcept body Return Call NameLoad SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index NameLoad handlers ExceptHandler type TupleLoad NameLoad body Return Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body If CompareNotEq NameLoad AttributeLoad NameLoad attr body Return Call NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr body Return Call NameLoad Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr If CompareIn SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr body Return Call NameLoad BinOpMod SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Call AttributeLoad NameLoad attr NameLoad orelse Return Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareEq NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad keyword NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults Call NameLoad body Return SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults Call NameLoad body Return SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Print BinOpAdd Str AttributeLoad NameLoad attr Print Str For NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr body Print Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Dict Str Str Str Str ListLoad Num Num Num ListLoad BinOpDiv Num Num Num Num ListLoad Str Str Str ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return SubscriptLoad Call NameLoad NameLoad keyword Call NameLoad ListLoad Str Str Str Index ListLoad Str Str Str Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Import alias Import alias identifier Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr
N/A N/A 
Easy integration of DataFrame into pyqt framework

Copyright: Jev Kuznetsov
Licence: BSD

 PyQt4.QtCore QAbstractTableModel Qt QVariant QModelIndex SIGNAL PyQt4.QtGui QApplication QDialog QVBoxLayout QTableView QWidget QTableWidget QHeaderView QFont QMenu QAbstractItemView pandas DataFrame Index DataFrameModel N/A QAbstractTableModel N/A N/A  data model for a DataFrame class  __init__ N/A N/A self parent N/A None N/A N/A N/A N/A N/A super DataFrameModel self __init__ parent N/A N/A self df N/A DataFrame N/A N/A self columnFormat N/A N/A setFormat N/A N/A self fmt N/A N/A N/A  
        set string formatting for the output 
        example : format = {'close':"%.2f"}
         N/A N/A self columnFormat fmt N/A setDataFrame N/A N/A self dataFrame N/A N/A N/A N/A self df dataFrame N/A N/A N/A self signalUpdate N/A signalUpdate N/A N/A self N/A N/A N/A  tell viewers to update their data (this is full update, not efficient) N/A N/A N/A N/A self layoutChanged emit N/A __repr__ N/A N/A self N/A N/A N/A N/A str N/A self df N/A headerData N/A N/A self section orientation role N/A N/A Qt DisplayRole N/A N/A N/A role N/A Qt DisplayRole N/A N/A N/A QVariant N/A N/A orientation N/A Qt Horizontal N/A N/A N/A N/A N/A N/A N/A N/A N/A self df columns tolist N/A section N/A N/A N/A N/A IndexError N/A N/A N/A QVariant N/A N/A N/A orientation N/A Qt Vertical N/A N/A N/A N/A N/A str N/A N/A N/A N/A N/A self df index tolist N/A section N/A N/A N/A N/A IndexError N/A N/A N/A QVariant N/A data N/A N/A self index role N/A N/A Qt DisplayRole N/A N/A N/A role N/A Qt DisplayRole N/A N/A N/A QVariant N/A N/A N/A N/A index isValid N/A N/A N/A QVariant N/A col N/A N/A N/A self df ix N/A N/A N/A N/A N/A index column N/A elm N/A col N/A N/A N/A index row N/A N/A N/A N/A N/A self df columns N/A N/A N/A index column N/A N/A N/A self columnFormat keys N/A N/A N/A QVariant N/A N/A N/A self columnFormat N/A N/A N/A N/A self df columns N/A N/A N/A index column elm N/A N/A N/A QVariant N/A str elm N/A sort N/A N/A self nCol order N/A N/A N/A N/A N/A N/A self layoutAboutToBeChanged emit N/A N/A order N/A Qt AscendingOrder N/A N/A N/A self df N/A N/A N/A self df sort column N/A N/A N/A self df columns N/A nCol ascending True N/A N/A N/A order N/A Qt DescendingOrder N/A N/A N/A self df N/A N/A N/A self df sort column N/A N/A N/A self df columns N/A nCol ascending False N/A N/A N/A N/A self layoutChanged emit N/A rowCount N/A N/A self index N/A N/A QModelIndex N/A N/A N/A N/A N/A self df shape N/A 0 N/A columnCount N/A N/A self index N/A N/A QModelIndex N/A N/A N/A N/A N/A self df shape N/A 1 N/A N/A TableView N/A QTableView N/A N/A  extended table view  __init__ N/A N/A self name parent N/A TableView1 None N/A N/A N/A N/A N/A super TableView self __init__ parent N/A N/A self name name N/A N/A N/A self setSelectionBehavior N/A QAbstractItemView SelectRows N/A contextMenuEvent N/A N/A self event N/A N/A N/A menu N/A QMenu self N/A Action N/A N/A menu addAction print selected rows N/A N/A N/A N/A Action triggered connect N/A self printName N/A N/A N/A menu exec_ N/A N/A event globalPos N/A printName N/A N/A self N/A N/A N/A N/A Action triggered from  N/A self name N/A Selected rows: N/A idx N/A N/A N/A N/A self selectionModel selectedRows N/A N/A N/A N/A idx row N/A N/A DataFrameWidget N/A QWidget N/A N/A  a simple widget for using DataFrames in a gui  __init__ N/A N/A self name parent N/A DataFrameTable1 None N/A N/A N/A N/A N/A super DataFrameWidget self __init__ parent N/A N/A self name name N/A N/A self dataModel N/A DataFrameModel N/A N/A N/A N/A self dataModel setDataFrame N/A DataFrame N/A N/A self dataTable N/A QTableView N/A N/A N/A N/A self dataTable setSelectionBehavior N/A QAbstractItemView SelectRows N/A N/A N/A N/A self dataTable setSortingEnabled True N/A N/A N/A N/A self dataTable setModel N/A self dataModel N/A N/A N/A N/A self dataModel signalUpdate N/A layout N/A QVBoxLayout N/A N/A N/A layout addWidget N/A self dataTable N/A N/A N/A self setLayout layout N/A setFormat N/A N/A self fmt N/A N/A N/A  set non-default string formatting for a column  N/A N/A colName f N/A N/A fmt iteritems N/A N/A N/A N/A N/A self dataModel columnFormat N/A colName f N/A fitColumns N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self dataTable horizontalHeader setResizeMode N/A QHeaderView Stretch N/A setDataFrame N/A N/A self df N/A N/A N/A N/A N/A N/A self dataModel setDataFrame df N/A resizeColumnsToContents N/A N/A self N/A N/A N/A N/A N/A N/A self dataTable resizeColumnsToContents N/A N/A testDf N/A N/A N/A N/A N/A  creates test dataframe  N/A data N/A int float string nan N/A 1 2 3 N/A N/A 1.0 3 2.5 3.5 N/A a b c N/A N/A np nan N/A np nan N/A np nan N/A N/A N/A DataFrame data index N/A Index N/A AAA BBB CCC N/A N/A int float string nan N/A Form N/A QDialog N/A __init__ N/A N/A self parent N/A None N/A N/A N/A N/A N/A super Form self __init__ parent N/A df N/A testDf N/A widget N/A DataFrameWidget parent self N/A N/A N/A widget setDataFrame df N/A N/A N/A widget fitColumns N/A N/A N/A widget setFormat N/A float %.2f N/A layout N/A QVBoxLayout N/A N/A N/A layout addWidget widget N/A N/A N/A self setLayout layout N/A N/A N/A N/A __name__ __main__ N/A N/A sys N/A numpy np N/A app N/A QApplication N/A sys argv N/A form N/A Form N/A N/A N/A form show N/A N/A N/A app exec_