Skip to content

PolarBayes

PolarBayes is a Python package for converting Bayesian inference output into "tidy data" format dataframes.

This package aims to be a spiritual Python port of the tidybayes package for the R and tidyverse ecosystem. It substitutes polars for the tidyverse and ArviZ InferenceData objects for posterior::draws_df objects.

Installation

You can install the development version of PolarBayes within an individual Python project (recommended) or within an environment using any Python package management tool that supports git remotes, including uv, poetry, and pip.

Project level

uv add git+https://github.com/cdcgov/polarbayes.git
poetry add git+https://github.com/cdcgov/polarbayes.git

Environment level

uv pip install git+https://github.com/cdcgov/polarbayes.git
pip install git+https://github.com/cdcgov/polarbayes.git

Getting Started

If you've used tidybayes before, jump right in with the PolarBayes quickstart for tidybayes users. A full tutorial that assumes no prior knowlege of tidybayes is in progress.