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.31

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.31
File Size Uploaded
era_py-0.0.31.tar.gz 2.9 MB Details

Built distribution (wheel)

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

Total release size: 5.9 MB

Release files / era_py-0.0.31.tar.gz

Download URL era_py-0.0.31.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
1603a09243490ce5ede2360dcefbfda72a9f7ed5068d663c83de73fe6b8f4ae2
BLAKE2b-256 checksum
How to use checksums
ba7555a490be6cb41e59545e7777084411b1e6c1ba438e3dda915e83d17978d8
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.31-py3-none-any.whl

Download URL era_py-0.0.31-py3-none-any.whl
Size 3.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
074bd3e2532e185923c091b9efa5c2d2a3f6a062617ccb024220c93c18ad2876
BLAKE2b-256 checksum
How to use checksums
af235fdccedf51d7d07fba231641618f1b7a41361b3b7c4999bfb155db1eb6dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release history Release notifications | RSS feed

This release

0.0.31 This release

2 release files

0.0.30

2 release files

0.0.29

2 release files

0.0.28

2 release files

0.0.27

2 release files

0.0.26

2 release files

0.0.25

2 release files

0.0.24

2 release files

0.0.23

2 release files

0.0.22

2 release files

0.0.21

2 release files

0.0.20

2 release files

0.0.19

2 release files

0.0.18

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.10

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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