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 that users migrate when possible. For the time being, until major software packages have successfully transitioned, we will attempt to keep patsy working in its current state with current releases in the Python ecosystem.


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 https://patsy.readthedocs.io/ PyPI - Status https://travis-ci.org/pydata/patsy https://coveralls.io/r/pydata/patsy?branch=master https://doi.org/10.5281/zenodo.592075

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 setup.py 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.

Source Distribution

patsy-0.5.6.tar.gz (398.0 kB view hashes)

Uploaded Source

Built Distribution

patsy-0.5.6-py2.py3-none-any.whl (233.9 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