pydata/bottleneck
Fast NumPy array functions written in C
What it solves
Bottleneck addresses performance bottlenecks in data processing tasks that involve NumPy arrays. It provides a collection of specialized functions designed to execute faster than standard NumPy equivalents, particularly when handling missing data (NaNs) or performing moving window calculations.
How it works
Bottleneck implements its functions in C, allowing them to bypass the overhead of standard Python-based operations. When you use its functions—such as nanmean to calculate averages while ignoring missing values, or move_mean for rolling window statistics—the library performs the heavy lifting at the C level. It is optimized for specific data types (int32, int64, float32, and float64) to ensure maximum speed.
Who it’s for
This library is intended for data scientists, engineers, and developers who rely on NumPy for heavy numerical computation and need to speed up their data processing pipelines without changing their existing workflows.
Highlights
- Significant performance improvements over standard NumPy for common operations.
- Specialized support for handling NaN (Not a Number) values in statistical calculations.
- Efficient moving window functions for rolling statistics.
- Built-in benchmarking tools to measure and compare performance gains.
- Easy integration with existing NumPy-based projects.
Related
- Project
- Project
- Project
- Project