{"categories":[{"label":"Scientific/Engineering","url":"https://skillfed.io/packages/category/scientific-engineering"}],"enrichment":{"capability":"Bottleneck provides fast NumPy array functions written in C, accelerating operations like nanmean, nansum, moving window calculations, and ranking on arrays with NaN values.","skillfed_tags":["performance-optimization","numpy-acceleration","time-series"],"use_cases":["Computing statistics on financial time series with missing data (NaN values) where speed matters.","Calculating rolling/moving averages, sums, and standard deviations on large arrays.","Finding min/max and ranking operations on arrays with NaN values faster than NumPy.","Accelerating scientific data processing pipelines that repeatedly call reduction functions.","Replacing slow NumPy operations in data analysis workflows without changing code logic."],"what_it_does":"Bottleneck is a C-accelerated library that reimplements common NumPy array operations to run significantly faster, particularly when working with NaN values or performing moving-window calculations. It wraps NumPy arrays and provides drop-in replacements for functions like nanmean, nansum, nanstd, nanmin, nanmax, median, and a suite of moving-window operations (move_mean, move_sum, move_std, move_median, etc.).\n\nThe package is designed for workflows where you repeatedly call these operations on large arrays\u2014finance, time-series analysis, and scientific computing are typical use cases. It only accelerates int32, int64, float32, and float64 dtypes; other dtypes fall back to slower unaccelerated paths. Installation is straightforward on common platforms thanks to pre-built binary wheels, though it requires a C compiler if building from source.","worth_installing":"Yes, if you work with NumPy arrays and frequently call NaN-aware or moving-window operations on large datasets. The permissive license and active maintenance make it low-risk. Install friction is medium due to compiled extensions, but binary wheels cover most platforms. Skip it if your arrays are small, you rarely use these specific functions, or you work exclusively with non-numeric dtypes."},"id":"bottleneck","links":{"html":"https://skillfed.io/packages/bottleneck","md":"https://skillfed.io/packages/bottleneck.md","pypi":"https://pypi.org/project/bottleneck/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-09-08","license_spdx":null,"license_treatment":"permissive","name":"Bottleneck","python_support":"supports_current","summary":"Fast NumPy array functions written in C"},"popularity":{"monthly_downloads":10889451,"position":1428,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.6.0"}
