``` python def foo(x): print "hello" _ = pd.DataFrame({'a':[1]}).groupby(["a"]).apply(foo) ``` ``` hello hello ```