I put the data in a data frame, I still don't know what youre trying to do, but the code shows True if the value is less than the std in the stv column and it will show True if the value is less than the mean
import numpy as np
data = np.array([150000, 125000, 320000, 540000, 200000, 120000, 160000, 230000, 280000, 290000, 300000, 500000, 420000, 100000, 150000, 280000])
while i < len(data):
if data[i] in range(stv, me_an):
count = count + 1
#this's the code I wrote but it seems that it's not appropriate as per the question. Please help me identify the flaw...