Skip to main content
* DataMat
/Matrix Operations on Data Arrays./ A pandas-friendly toolkit that wraps rich matrix algebra primitives in DataFrame/Series-aware containers (~DataMat~, ~DataVec~).

** Features
- Drop-in replacements for many ~numpy~ matrix operations that preserve pandas metadata.
- Helpers for aligning MultiIndex structures and constructing dummy variables from categorical sources.
- A ~DataVec~/~DataMat~ API that mirrors pandas while adding linear-algebra conveniences (projection, leverage, SVD, etc.).

** Repository Layout
#+begin_example
src/datamat/ Core source code (DataMat, DataVec, utilities)
docs/ Historical literate notebooks and design notes
tests/ Unit tests
scripts/ Development tooling (e.g., pre-push hook)
#+end_example

** Getting Started
1. Install Python 3.11 (e.g., via pyenv) and Poetry (https://python-poetry.org/docs/).
2. Create and initialise the virtual environment:
#+begin_src bash
poetry env use 3.11
poetry install --with dev
# optional extras, e.g. lsms, can be added via `poetry add`
#+end_src
3. Run the quality gates and test suite:
#+begin_src bash
poetry run ruff check .
poetry run black --check .
poetry run mypy src tests
poetry run pytest
# or simply
make check
#+end_src

** Development Workflow
- Contribution guidelines: [[file:CONTRIBUTING.org][CONTRIBUTING.org]]
- Agent-specific policies: [[file:AGENTS.org][AGENTS.org]]
- Pre-push automation: =ln -s ../../scripts/pre-push.sh .git/hooks/pre-push=

** Documentation
The historical literate source from the original Metrics Miscellany project lives in =docs/metrics_miscellany.org=. It remains the best place to reference derivations and design notes. Current development happens directly in the Python modules under =src/datamat/=; augment the Org materials when adding new capabilities.

** Online Docs
Rendered documentation generated by MkDocs is available at [[https://ligon.github.io/DataMat/]].

** Optional Dependencies
- Robust Stata ingestion relies on =lsms.tools.from_dta=. Install the =lsms= package if you plan to call =datamat.read_stata=.

** License
The project continues under the original license; see =LICENSE.txt=.

Metadata

Release files for datamat 0.2.4

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

Source distribution (sdist)

Source distribution for datamat 0.2.4
File Size Uploaded Provenance Actions
datamat-0.2.4.tar.gz 25.4 kB Without provenance Details for datamat-0.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datamat 0.2.4
File Interpreter ABI Platform Actions
datamat-0.2.4-py3-none-any.whl Python 3 none any Details for datamat-0.2.4-py3-none-any.whl

Total release size: 51.1 kB

Release files / datamat-0.2.4.tar.gz

Download URL datamat-0.2.4.tar.gz
Size 25.4 kB
Tags Source
SHA-256 checksum
How to use checksums
010c0718f15069277c27c7f93446e3569fa31dcd0a4ecb9768a76d9996412a00
BLAKE2b-256 checksum
How to use checksums
499fb9754069190264fc69de6f665e01165c744e0c9c6d21fd46105c68f4baf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.12.12 Linux/6.6.99-09128-g14e87a8a9b71

Release files / datamat-0.2.4-py3-none-any.whl

Download URL datamat-0.2.4-py3-none-any.whl
Size 25.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
65b4101520c42aee55708b4a5a4ff827455a9f178b7c24281bf7744ba3e5091d
BLAKE2b-256 checksum
How to use checksums
15f3a394f40ed8271abd4b55dbba158618a392680b7779eca04902843ed3adb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.12.12 Linux/6.6.99-09128-g14e87a8a9b71

Security for datamat 0.2.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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