Questions tagged [bottleneck-package]

Use for questions on the Bottleneck package - a collection of array function utilities in C for NumPy. Use with the [python] language tag and [numpy]. If relevant to the issue of the question, use one of the versioned [python-*] tags.

About

Bottleneck is a utility package adding array functions for working with the NumPy language extension for Python.

Example

from math import nan
from numpy import array

from bottleneck import anynan

truthy = array([1,2,3], copy=True)
falsy = array([nan, 2,3], copy=True)

print(anynan(truthy)) # False
print(anynan(falsy)) # True

Usage guidance

  • Ensure the main language tag () and the language extension tag () are always present.
  • Where relevant to the crux of the matter, add one (or more) versioned language tags (e.g., ).
1 questions
0
votes
0 answers

How to get a forward moving average using the Bottleneck package?

Using the Bottleneck package, I'm able to do a backward-moving average of my data, but I'm unable to find how to do the forward moving average. The below code is for the backward moving average: import bottleneck as bn bn.move_mean(data, window=4,…
Akilesh
  • 413
  • 3
  • 11