Skip to main content

A Python package for describing statistical models and for building design matrices.

Project description

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.


  • Python (2.6, 2.7, or 3.3+)

  • six

  • numpy

Optional dependencies:
  • nose: needed to run tests

  • scipy: needed for spline-related functions like bs


pip install patsy (or, for traditionalists: python install)

Code and bug tracker:

Mailing list:

2-clause BSD, see LICENSE.txt for details.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

patsy-0.5.1.tar.gz (397.6 kB view hashes)

Uploaded Source

Built Distribution

patsy-0.5.1-py2.py3-none-any.whl (231.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page