Skip to content
/ patsy Public

Describing statistical models in Python using symbolic formulas

License

Notifications You must be signed in to change notification settings

pydata/patsy

Folders and files

NameName
Last commit message
Last commit date
Nov 12, 2024
Nov 12, 2024
Jan 27, 2025
Sep 26, 2021
Jul 10, 2012
Nov 12, 2024
Feb 24, 2025
Dec 18, 2015
Oct 7, 2012
Sep 5, 2021
Nov 12, 2024
Nov 11, 2024
Oct 28, 2018
Sep 26, 2021
Nov 12, 2024
Nov 12, 2024

Repository files navigation

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

Dependencies

  • Python (3.6+)
  • 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.