Skip to content

Instantly share code, notes, and snippets.

@szs8
szs8 / pandasgrid.py
Created September 7, 2012 21:12
Display a pandas dataframe in a wx grid
#!/usr/bin/env python
import wx
from wx import EVT_CLOSE
import wx.grid as gridlib
EVEN_ROW_COLOUR = '#CCE6FF'
GRID_LINE_COLOUR = '#ccc'
class PandasTable(wx.Frame):
@podhmo
podhmo / result
Created July 17, 2012 19:50
how to use session.merge [sqlalchemy]
[<__main__.Sub object at 0x1f44250>, <__main__.Sub object at 0x1f44390>, <__main__.Sub object at 0x1f44350>]
[u'a', u'b', u'c']
pre commit
------
ok
after commit
------