Skip to main content

era_py

Helpers for the Python port of Empirical Research in Accounting: Tools and Methods.

Install

pip install era-py
pip install "era-py[polars]"
pip install "era-py[tables]"

For repository development, prefer the checked-in virtual environment:

.venv/bin/python -m pytest

era-py provides two import paths:

  • import era_py is the base API built around pandas/Ibis-style workflows.
  • import era_pl is the Polars API and requires pip install "era-py[polars]".

Usage

from era_py import load_data, ols_dropcollinear

camp = load_data("camp_attendance")

Testing Optional Dependencies

For quick checks of optional extras without changing your local environment, use uv run --with ...:

PYTHONPATH=src uv run --with polars python -c "import era_pl; print(era_pl.__version__)"

This is useful for verifying the era_pl import path and other Polars-specific behavior without permanently installing polars into your project environment.

Metadata

Release files for era-py 0.0.32

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for era-py 0.0.32
File Size Uploaded
era_py-0.0.32.tar.gz 2.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for era-py 0.0.32
File Interpreter ABI Platform
era_py-0.0.32-py3-none-any.whl Python 3 none any Details

Total release size: 5.9 MB

Release files / era_py-0.0.32.tar.gz

Download URL era_py-0.0.32.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
d32c8d2b5b1b3279d38b27d7099fe0a30a7ddafbbb5c4860d471a1c0cdff5a8d
BLAKE2b-256 checksum
How to use checksums
803230e9ece0c553dea708b5862e09e126d41a32ef16a3edb9a035902bc239dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release files / era_py-0.0.32-py3-none-any.whl

Download URL era_py-0.0.32-py3-none-any.whl
Size 3.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d331f416aee2e9bcceed33c2eb6997c67c7405223fe9c291a584a1d10219ffec
BLAKE2b-256 checksum
How to use checksums
87d8b8c3127feba4a7b5a136af950f807bc34e9b80aa9fd3defda3903b0523d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page