bizdays documentation

bizdays provides business-day calculations around a NumPy-backed Calendar API. The top-level bizdays.Calendar accepts scalar dates, Python sequences, NumPy arrays, and pandas date-like inputs, while returning NumPy scalars or arrays for consistent vectorized behavior.

This site documents bizdays 2.0:

  • build calendars directly with bizdays.Calendar

  • load packaged calendars with Calendar.load(name=...)

  • load custom JSON calendar files with Calendar.load(filename=...)

  • work with Python, NumPy, and pandas date-like inputs using the same API

Install

pip install bizdays

bizdays 2.0 runs on Python 3.10 to 3.14. Each optional calendar provider is an extra:

pip install "bizdays[pmc]"    # pandas_market_calendars, names with the PMC/ prefix
pip install "bizdays[xcal]"   # exchange_calendars, names with the XCAL/ prefix
pip install "bizdays[work]"   # workalendar, names with the WORK/ prefix

The notebooks under docs/source/ are the canonical documentation examples and are executed during the Sphinx build.

Documentation map

Contents

Indices and tables