I've seen https://groups.google.com/forum/#!topic/pystatsmodels/96cMRgFXBaA, but why doesn't something like this work. ``` from patsy import dmatrices data = dict(y=range(1,11), x1=range(21,31), x2=range(11,21)) dmatrices("y ~ x1 + x2**2", data) ``` or ``` dmatrices("y ~ x1 + I(x2**2)", data) ``` This works ``` dmatrices("y ~ x1 + np.power(x2, 2)", data) ```