A Python package for describing statistical models and for
Patsy is a Python library for describing statistical models
(especially linear models, or models that have a linear component)
and building design matrices. Patsy brings the convenience of R
formulas to Python.

Homepage:
https://github.com/pydata/patsy
