+ 3
Can someday please help me with the houses program in data science, python? Please
It's urgent...
6 odpowiedzi
+ 3
It would be easier if you provided some more details, do you have any code, or anything? Your brief message is cryptic
+ 2
Thanks very much, Steven...
+ 1
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
https://code.sololearn.com/cawQZk2GvO2f/?ref=app
+ 1
Hey Steven thanks for your help but can it be done without a data frame? I mean just by using the numpy library without using pandas...😅😅😅
0
import numpy as np
data = np.array([150000, 125000, 320000, 540000, 200000, 120000, 160000, 230000, 280000, 290000, 300000, 500000, 420000, 100000, 150000, 280000])
stv=np.std(data)
me_an=np.mean(data)
count=0
i=0
while i < len(data):
i=i+1
if data[i] in range(stv, me_an):
count = count + 1
print ((count/len(data))*100)
#this's the code I wrote but it seems that it's not appropriate as per the question. Please help me identify the flaw...
0
Something like this??
https://code.sololearn.com/cjb33onibUUl/?ref=app