Question: I am using Python to analysis some data from CSV file but I am facing this problem. I dont have string data and its tailing
I am using Python to analysis some data from CSV file
but I am facing this problem.
I dont have string data and its tailing me ( could not convert string to float)



def calculateAverageInterval (Rains): sumofIntervals 0 for rain in Rains: sumofIntervalssumofIntervals + float (rain. Interval) print (len (Rains)) return sumofIntervals/len (Rains) rain-Rain () textfile 'C:/Users/hello/Desktop/MIS 390/Project/beach-weather-stations.csv' myMeasurement, myWind, myRain, myTemperature, myOtherWeatherInformation, myStation-readDatafromCSV (textfile) print (myRain[0] . Interval) print (calculateAverageInterval (myRain)) Processed 75815 lines Traceback (most recent call last): File "c:Usershello\DesktopIMIS 390 Project Noha's Project.py", line 92, in
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
