Question: (b) Write complete Python code to accomplish the following task. i. Import tabular data from excel file data.xlsx into variable data. ii. Show the statistical

 (b) Write complete Python code to accomplish the following task. i.

(b) Write complete Python code to accomplish the following task. i. Import tabular data from excel file data.xlsx into variable data. ii. Show the statistical summary of the dataframe data and all values must be two decimal places. Create a dataframe named df from the following lists: list_1 = [10,20,30,40,50] list_2 = [100, 150, 200, 500, 700] list_3 = [1087, 2180,3019, 1198,2708] Name the column as list_1, list_2 and list_3, respectively. iv. From dataframe df in b(iii), slice column list_2 and list_3 as input variable x. V. From dataframe df in b(iii), slice column list_1 as output variable y. (10 marks)

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!