Question: please send the python code for this Maximum Average Rainfall Attempted: 1/2 PYTHON You are given a CSV file with the following columns: Compiler: Python

 please send the python code for this Maximum Average Rainfall Attempted:

please send the python code for this

Maximum Average Rainfall Attempted: 1/2 PYTHON You are given a CSV file with the following columns: Compiler: Python 2.7 1 import pandas as pd 2 COUNTRY DATE RAIN SNWD SNOW DURATION 3 4 # Read only region start class UserMainCode(object): @classmethod def MaxAvgRainfall(cls, input1): Below is a small snippet of the dataset for your reference: 5 6 7 SNWO SNOW 8 COUNTRY Scotland Dominican Republic Monaco DATE 20140102 20340102 inputi : string 0 0 RAIN 0 41 15 0 DURATION 516 2919 9 10 Expected return type : List[String] 20130102 20140105 0 0 11 D 566 663 3507 3 O 12 13 14 You need to return ist with the names of countries with the maximum average rainfall. taking into account that a single country can have multiple entries and return the value. # Read only region end # Write code here data_frame=pd.read_csv(input1) pass data_frame. columns() return 15 16 17 00 Input Specification input1. URL for the CSV file is being passed as a string to the function Output Specification Output: Return the names of the countries with the maximum average rainfall as a python list WS

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!