Skip to main content

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

Project description

# Patsy

Notice: patsy is no longer under active development. As of August 2021, Matthew Wardrop (@matthewwardrop) and Tomás Capretto (@tomicapretto) have taken on responsibility from Nathaniel Smith (@njsmith) for keeping the lights on, but no new feature development is planned. The spiritual successor of this project is [Formulaic](, and we recommend those interested in new feature development contribute there. Those whose use-cases continue to be met by patsy can continue using this package with increased confidence that things will continue to work as is for the foreseeable future.

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.

[![PyPI - Version](]( ![PyPI - Python Version]( ![]( ![PyPI - Status]( ![]( ![]( ![](

## Dependencies

  • Python (2.6, 2.7, or 3.3+)
  • six
  • numpy
  • Optional: * pytest/pytest-cov: needed to run tests * scipy: needed for spline-related functions like bs
## Installation
pip install patsy (or, for traditionalists: python install)

## License

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

Download files

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

Files for patsy, version 0.5.2
Filename, size File type Python version Upload date Hashes
Filename, size patsy-0.5.2-py2.py3-none-any.whl (233.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size patsy-0.5.2.tar.gz (397.3 kB) File type Source Python version None Upload date Hashes View

Supported by

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