this needs to be actual code, not a past of an ipython session (it WILL generate an ipython session as it goes)

e.g. 
```
 df = DataFrame(.....)
df.groupby(df.sum(), axis=1).sum()
```

is all that's needed 

and needs to be

``.. ipython:: python``