numdaplot
A simpler, explicit API over numpy, pandas and matplotlib.
Each action has exactly one way to be written, settings are typed objects that check their values when they are created, and every operation returns a new object.
import numdaplot as ndp
prices = ndp.Array.from_list([12.5, 8.0, None, 30.0])
taxed_prices = prices * 1.2
high_prices = taxed_prices.select(ndp.Greater(10))
mean_price = prices.compute(ndp.Mean()).to_value()
sales = ndp.Table.from_csv("sales.csv")
expensive = ndp.Condition(rule=ndp.Greater(100), columns=["price"])
expensive_sales = sales.filter(ndp.Filter(conditions=[expensive]))
average_price = ndp.Calculation(column="price", function=ndp.Mean())
by_city = expensive_sales.aggregate(ndp.Aggregation(calculations=[average_price], group_by=["city"]))
chart = ndp.BarChart(x="city", y=["price_mean"])
style = ndp.PlotStyle(title="Average price per city")
plot = ndp.Plot.bar(by_city, chart, style)
plot.save("prices.png")
Status
numdaplot is in alpha: the API can still change between versions, and ndp.__version__ gives the installed version.
The shared foundations (types, rules, statistics, positions,
sort settings, errors), Array, Table, the tools for missing values and dates (formats, time zones,
parts, periods and durations), line, bar, scatter, histogram, box, pie, heatmap and missing value plots,
charts overlaid on a plot, and figures placing plots on a grid are available.
Requirements
- Python 3.13 or later
- numpy 2.2+, pandas 2.3+ and matplotlib 3.10.7+
- Optional extras:
excel(openpyxl) andparquet(pyarrow)
Installation
pip install numdaplot
pip install "numdaplot[excel,parquet]"
The excel extra reads and writes Excel files, the parquet extra reads and writes Parquet files.
Development
From a clone of the repository, with uv:
uv sync --all-extras
The extras are needed to run every test, since the Excel and Parquet tests write real files.
Run the tests
The test entry point runs the unit tests, the functional tests and every docstring example:
uv run python run_tests.py
Arguments are passed to pytest, for example uv run python run_tests.py -k between.
Measure the coverage
The coverage of every line and every branch of src/numdaplot and tools/docs is measured while the whole suite
runs, and must reach 99.50%:
uv run coverage run run_tests.py
uv run coverage report
uv run coverage html writes a detailed report in htmlcov/.
Check the code
uv run ruff check .
uv run ruff format --check .
uv run pyright
Documentation
The documentation is online at https://ryieru.github.io/numdaplot/. It is generated from the docstrings, and shown locally with:
uv run mkdocs serve
Release
A version is published by pushing a tag v<version>. The Release workflow then runs the checks, builds the
package, publishes it on TestPyPI, waits for an approval on GitHub, publishes it on PyPI, publishes the
documentation site and creates the GitHub release with the changes of CHANGELOG.md.
- A minor or major version, such as
0.2.0or1.0.0, is first tried as a release candidate: setversion = "0.2.0rc1"inpyproject.toml, commit, push, then push the tag. A release candidate only goes to TestPyPI. Check its page and its installation, and fix with0.2.0rc2and so on until it is right. - Set the final version in
pyproject.toml, and replace## [Unreleased]with## [0.2.0] - <date>inCHANGELOG.md. Commit, push, then push the tag. - Check the version on TestPyPI, then approve the
pypienvironment in the workflow run on GitHub.
A patch version, such as 0.1.1, skips step 1. When TestPyPI shows a problem, the approval is refused and the patch
is tried again as 0.1.1rc1.
git tag v0.2.0rc1
git push origin v0.2.0rc1
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ numdaplot==0.2.0rc1
Code organization
src/numdaplot/
__init__.py every public name, available as ndp.*
arrays/ Array and its settings: Shape, Spacing, distributions, math functions...
tables/ Table and its settings: file options, Filter, Aggregation, PivotTable, Sorting, Preview...
dates/ DateFormat, TimeZone, TimeZoneChange, DatePart, DatePeriod, DurationIn, ToDuration...
plots/ Plot and its creation methods, the charts, the PlotStyle and Figure
errors/ NumdaplotError, the precise errors, NumdaplotWarning and the precise warnings
data_types/ the Type enum and its conversion to numpy and pandas dtypes
ratios/ validation of fractions between 0 and 1, and the Measure enum
rules/ tests applied to each value: Equal, Greater, Between, IsIn, Contains, IsMissing...
statistics/ Sum, Mean, Median, Quantile, StandardDeviation...
positions/ Region, Index, Range and Axis
ordering/ Order and MissingPosition
settings/ check of the settings against their annotations, InvalidTypeError being raised
tests/
unit/ one test file per source file, mirroring src/numdaplot
functional/ one test file per notion, using the library as ndp
docs/ pages and stylesheet of the documentation site
tools/docs/ griffe extensions and MkDocs hooks building the documentation site and its API pages
run_tests.py test entry point
conftest.py pytest settings shared by the tests and the docstring examples
License
BSD-3-Clause, see LICENSE.
Metadata
Release files for numdaplot 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| numdaplot-0.1.0.tar.gz | 733.6 kB | With provenance | Details for numdaplot-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| numdaplot-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for numdaplot-0.1.0-py3-none-any.whl |
Total release size: 1.3 MB
Release files / numdaplot-0.1.0.tar.gz
| Download URL | numdaplot-0.1.0.tar.gz |
|---|---|
| Size | 733.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe186d9c06d5d7faf93da1bc4f86bedc994ab92ad7ed6fd5b3777e56283c4c4a
|
|
BLAKE2b-256 checksum How to use checksums |
db7d2988709eb46813f0343c7564c976776b515c45cd70829bd982b5bf666972
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logRelease files / numdaplot-0.1.0-py3-none-any.whl
| Download URL | numdaplot-0.1.0-py3-none-any.whl |
|---|---|
| Size | 563.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c6fc9efe3eab972dc8d63eb51dda8e54ecfa8b8921209e3c64a412da82cb35c
|
|
BLAKE2b-256 checksum How to use checksums |
664564ffdf449a3ab6182d34c0fddfaff064af57cf052dc28fe8a7fed420e4e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logSecurity for numdaplot 0.1.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for numdaplot-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logA 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.