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

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.

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.27.tar.gz (2.9 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.27-py3-none-any.whl (3.0 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for era_py-0.0.27.tar.gz
Algorithm Hash digest
SHA256 d71bc11cdb8d3b0df33a5af91ec2258f62f20f860417aa105f28f933e77333be
MD5 41c43d86da205dcde2b391ed040950f8
BLAKE2b-256 49ed5242a3d371b89594ddece314ab537dab413b03f26b78672a2296d788e24d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for era_py-0.0.27-py3-none-any.whl
Algorithm Hash digest
SHA256 8cfaad12d5f3b50e0e610a53e658860fb4552d4a1408a5bbd1b8ae0f12986431
MD5 8cc9f1744b293377b68057f1910df905
BLAKE2b-256 634a759401ef3574c554203a2418c5a000f41a9a8f25b80154d1f7551c01f621

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