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

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.3.tar.gz (397.7 kB view details)

Uploaded Source

Built Distribution

patsy-0.5.3-py2.py3-none-any.whl (233.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file patsy-0.5.3.tar.gz.

File metadata

  • Download URL: patsy-0.5.3.tar.gz
  • Upload date:
  • Size: 397.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.14

File hashes

Hashes for patsy-0.5.3.tar.gz
Algorithm Hash digest
SHA256 bdc18001875e319bc91c812c1eb6a10be4bb13cb81eb763f466179dca3b67277
MD5 09355c852c7bd6f33fa89dc30fe79093
BLAKE2b-256 2c933b7db0bb8f1143f8ddb84f931719e7a538e3092c6898e5cdf65e1ed44fcb

See more details on using hashes here.

File details

Details for the file patsy-0.5.3-py2.py3-none-any.whl.

File metadata

  • Download URL: patsy-0.5.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 233.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.14

File hashes

Hashes for patsy-0.5.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7eb5349754ed6aa982af81f636479b1b8db9d5b1a6e957a6016ec0534b5c86b7
MD5 04a02e676acddeee0d00e040c088971e
BLAKE2b-256 2ae4b3263b0e353f2be7b14f044d57874490c9cef1798a435f038683acea5c98

See more details on using hashes here.

Supported by

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