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)

I am using Python to analysis some data from CSV file butI am facing this problem. I dont have string data and itstailing me ( could not convert string to float) def calculateAverageInterval (Rains):

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!