Metadata-Version: 2.4
Name: latent-calendar
Version: 1.7.0
Summary: Analyzing and modeling weekly calendar distributions using latent components
Project-URL: Homepage, https://williambdean.github.io/latent-calendar/
Project-URL: Repository, https://github.com/williambdean/latent-calendar/
Project-URL: Documentation, https://williambdean.github.io/latent-calendar/
Author-email: Will Dean <wd60622@gmail.com>
License-File: LICENSE
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Software Development :: Libraries
Requires-Python: <4.0,>=3.10
Requires-Dist: conjugate-models>=0.9.0
Requires-Dist: matplotlib>=3.5.0
Requires-Dist: narwhals>=1.44.0
Requires-Dist: pandas>=1.0.0
Requires-Dist: scikit-learn>=1.0.0
Provides-Extra: pymc
Requires-Dist: pymc>=5.0.0; extra == 'pymc'
Description-Content-Type: text/markdown

# Latent Calendar

[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Tests](https://github.com/williambdean/latent-calendar/actions/workflows/tests.yml/badge.svg)](https://github.com/williambdean/latent-calendar/actions/workflows/tests.yml)
[![PyPI version](https://badge.fury.io/py/latent-calendar.svg)](https://badge.fury.io/py/latent-calendar)
[![docs](https://github.com/williambdean/latent-calendar/actions/workflows/docs.yml/badge.svg)](https://williambdean.github.io/latent-calendar/)
[![codecov](https://codecov.io/gh/williambdean/latent-calendar/graph/badge.svg?token=WN7MMJPZ1S)](https://codecov.io/gh/williambdean/latent-calendar)

Analyze and model data on a weekly calendar

## Installation

Install from PyPI:

```bash
pip install latent-calendar
```

Or install directly from GitHub for the latest functionality.

## Features

- DataFrame agnostic transformations and aggregation powered by [`narwhals`](https://narwhals-dev.github.io/narwhals/)
- Integrated automatically into `pandas` and `polars` with [`cal` attribute on DataFrame and Series](https://williambdean.github.io/latent-calendar/modules/extensions)
- Compatible with [`scikit-learn` pipelines and transformers](https://williambdean.github.io/latent-calendar/examples/model/sklearn-compat)
- [Transform and visualize data on a weekly calendar](https://williambdean.github.io/latent-calendar/examples/cal-attribute)
- [Model weekly calendar data with a mixture of calendars](https://williambdean.github.io/latent-calendar/methodology)
- Create lower dimensional representations of calendar data

## Documentation

Find more examples and documentation [here](https://williambdean.github.io/latent-calendar/).
