Skip to main content

A Python package for describing statistical models and for

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+, or 3.2+)

  • 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 (414.9 kB view hashes)

Uploaded source

Built Distribution

patsy-0.3.0-py2.py3-none-any.whl (224.6 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page