Overview of Patsy
masterPatsy is a Python library used for describing statistical models (specifically linear models) and building design matrices. It implements a syntax similar to R's "formulas" within the Python ecosystem.
Note on Project Status: patsy is no longer under active feature development. For new projects, the maintainers recommend migrating to Formulaic, which is considered the spiritual successor. Patsy is currently maintained only to ensure compatibility with the existing Python ecosystem.