Can someday please help me with the houses program in data science, python? Please | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 3

Can someday please help me with the houses program in data science, python? Please

It's urgent...

12th Apr 2021, 7:39 PM
Srijito Ghosh
Srijito Ghosh - avatar
6 Antworten
+ 3
It would be easier if you provided some more details, do you have any code, or anything? Your brief message is cryptic
12th Apr 2021, 9:25 PM
Steven M
Steven M - avatar
+ 2
Thanks very much, Steven...
13th Apr 2021, 4:56 PM
Srijito Ghosh
Srijito Ghosh - avatar
+ 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
13th Apr 2021, 10:46 AM
Steven M
Steven M - avatar
+ 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...­čśů­čśů­čśů
13th Apr 2021, 11:46 AM
Srijito Ghosh
Srijito Ghosh - avatar
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...
13th Apr 2021, 7:38 AM
Srijito Ghosh
Srijito Ghosh - avatar
13th Apr 2021, 2:09 PM
Steven M
Steven M - avatar