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. Documentation: https://patsy.readthedocs.io/ Downloads: http://pypi.python.org/pypi/patsy/
https://pypi.org/project/patsy/

