• Stars
    star
    923
  • Rank 47,703 (Top 1.0 %)
  • Language
    Python
  • License
    Other
  • Created almost 12 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Describing statistical models in Python using symbolic formulas

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.