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](https://github.com/matthewwardrop/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](http://www.r-project.org/) “formulas” to Python.

[![PyPI - Version](https://img.shields.io/pypi/v/patsy.svg)](https://pypi.org/project/spec-classes/) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/patsy.svg) ![https://patsy.readthedocs.io/](https://img.shields.io/badge/docs-read%20now-blue.svg) ![PyPI - Status](https://img.shields.io/pypi/status/patsy.svg) ![https://travis-ci.org/pydata/patsy](https://travis-ci.org/pydata/patsy.png?branch=master) ![https://coveralls.io/r/pydata/patsy?branch=master](https://coveralls.io/repos/pydata/patsy/badge.png?branch=master) ![https://doi.org/10.5281/zenodo.592075](https://zenodo.org/badge/DOI/10.5281/zenodo.592075.svg)

## 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.2.tar.gz (397.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

patsy-0.5.2-py2.py3-none-any.whl (233.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: patsy-0.5.2.tar.gz
  • Upload date:
  • Size: 397.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for patsy-0.5.2.tar.gz
Algorithm Hash digest
SHA256 5053de7804676aba62783dbb0f23a2b3d74e35e5bfa238b88b7cbf148a38b69d
MD5 a35ed659d6be2803f6a3421fb5be8637
BLAKE2b-256 afdd2041fbf661e823599f868c064804e20895b8a98ff428f97bea472734eb5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: patsy-0.5.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 233.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for patsy-0.5.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cc80955ae8c13a7e7c4051eda7b277c8f909f50bc7d73e124bc38e2ee3d95041
MD5 b9fdacf8334ba87b9c48d235a91c1068
BLAKE2b-256 877fd37cd027c25145eeba92b1a756976931c831803d92547c8637a3400c339f

See more details on using hashes here.

Supported by

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