CMD + K

fast-histogram

Community

Fast 1D and 2D histogram functions in Python

Installation

To install this package, run one of the following:

Conda
$conda install ad-testing::fast-histogram

Usage Tracking

0.14
1 / 8 versions selected
Downloads (Last 6 months): 0

Description

Sometimes you just want to compute simple 1D or 2D histograms with regular bins. Fast. No nonsense. Numpy’s histogram functions are versatile, and can handle for example non-regular binning, but this versatility comes at the expense of performance.

The fast-histogram mini-package aims to provide simple and fast histogram functions for regular bins that don’t compromise on performance. It doesn’t do anything complicated - it just implements a simple histogram algorithm in C and keeps it simple. The aim is to have functions that are fast but also robust and reliable. The result is a 1D histogram function here that is 7-15x faster than numpy.histogram, and a 2D histogram function that is 20-25x faster than numpy.histogram2d.

About

Summary

Fast 1D and 2D histogram functions in Python

Last Updated

Sep 8, 2025 at 15:48

License

BSD-2-Clause

Total Downloads

4

Version Downloads

4