Answered step by step
Verified Expert Solution
Link Copied!

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)

image text in transcribedimage text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Oracle Fusion Applications Installation And Administration

Authors: Tushar Thakker

1st Edition

1484209834, 9781484209837

More Books

Students also viewed these Databases questions