Answers for "threshhold crossing on list python"

0

threshhold crossing on list python

>>> a = np.array([9, 9, 6, 3, 1, 6, 1, 0, 0, 8])
>>> from scipy import stats
>>> stats.threshold(a, threshmin=2, threshmax=8, newval=-1)
array([-1, -1,  6,  3, -1,  6, -1, -1, -1,  8])
Posted by: Guest on October-03-2021

Python Answers by Framework

Browse Popular Code Answers by Language