numpy select elements from array condition

The solution for “numpy select elements from array condition” can be found here. The following code will assist you in solving the problem.

import numpy as np

data = np.array([150000, 125000, 320000, 540000, 200000,
120000, 160000, 230000, 280000, 290000, 300000,
500000, 420000, 100000, 150000, 280000])

stdev = data.std()
aver = data.mean()
lower = aver-stdev
upper = aver+stdev
onestdev = data[(datalower)]

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in