Skip to main content

Helper functions and data for Python versions of Empirical Research in Accounting: Tools and Methods

Project description

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]"

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

era_py-0.0.20.tar.gz (5.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

era_py-0.0.20-py3-none-any.whl (5.9 MB view details)

Uploaded Python 3

File details

Details for the file era_py-0.0.20.tar.gz.

File metadata

  • Download URL: era_py-0.0.20.tar.gz
  • Upload date:
  • Size: 5.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for era_py-0.0.20.tar.gz
Algorithm Hash digest
SHA256 2f888e7c8c3317e35046b117c4d48249bc72ae4b34f6e1fb47786d86b3c52e62
MD5 0c14271d7aa767c0b045e5bfe60c04c4
BLAKE2b-256 87c2594db1f9ce4fb162ac70ed4cf6dc14bce43c5996a9ce8ecaf69441f0e9b6

See more details on using hashes here.

File details

Details for the file era_py-0.0.20-py3-none-any.whl.

File metadata

  • Download URL: era_py-0.0.20-py3-none-any.whl
  • Upload date:
  • Size: 5.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for era_py-0.0.20-py3-none-any.whl
Algorithm Hash digest
SHA256 0ca7898dac3ed9d94b359a14a2b8b91b79811d37624fcf6ba163bf9e97b4eb4a
MD5 0dcfc54536d8982455fe054103f4cca4
BLAKE2b-256 e972323f26f6dea19ed82598f74eae2e603e844a39396369e977557497a3c0be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page