Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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, inStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started