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.30.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.30-py3-none-any.whl (3.0 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: era_py-0.0.30.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.30.tar.gz
Algorithm Hash digest
SHA256 59d33f961702acb46f4335d7ac9664138d587a7d1da6f9fd6012ce400c607566
MD5 fd9f3b052b22da77f289e13fb5d8973e
BLAKE2b-256 228005366a0abc77dd6952006583bd9741ca218f9e63b2bae5a39940bf2eb119

See more details on using hashes here.

File details

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

File metadata

  • Download URL: era_py-0.0.30-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.30-py3-none-any.whl
Algorithm Hash digest
SHA256 2c69d55ac26a183112b8a5f582746e42860ea7aa4ffec171b155d84bf840b38b
MD5 eed93e4d212245bd4c86e8cfcdec8e26
BLAKE2b-256 1ed4ab65e47db2fdec3c1fa35cd8064317364490aef678afa1f331f75e7bdfdb

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