Question: Write a program that performs the following: 1. Reads in an unknown number of lines from input, where: a. each line may be assumed

Write a program that performs the following: 1. Reads in an unknown number of lines from input, where: a.

Write a program that performs the following: 1. Reads in an unknown number of lines from input, where: a. each line may be assumed to have the same number of space-delimited items; b. the first item is a string designating the "name" of the dataset on the remainder of the line; and c. the input terminates if a blank line is entered. 2. Converts the input data to a pandas DataFrame; 3. Prints the output of the describe () method on that DataFrame. For example, suppose the input is setA 0.5 0.6 0.7 setB 0.5 0.7 0.9 setC 0.2 0.4 0.6 (blank line here) Then the output would be setA setB setC count 3.00 3.0 3.0 mean 0.60 0.7 0.4 std 0.10 0.2 0.2 min 0.50 0.5 0.2 25% 0.55 0.6 0.3 50% 0.60 0.7 0.4 75% 0.65 0.8 0.5 max 0.70 0.9 0.6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

CODE import pandas as pd Create an empty dictionary data dict ... View full answer

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 Programming Questions!