Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the file name of a . tsv file read from user input containing student names and the respective course assignment grades, complete a program

Given the file name of a .tsv file read from user input containing student names and the respective course assignment grades, complete a program that performs the following tasks:
Read the input file as a pandas dataframe.
Output the students' names and grades in descending order of Finals scores.
Output each assignment's max score.
Output the median and average of each assignment's scores.
Output the standard deviation of each assignment's scores.
NOTES:
Steps 3 through 5 should only require one function for each step. Ex. Finding the max of each assignment uses max()
Append .to_string() to the end of the function call in order to silence an extraneous line that occurs at the end of the output.
For steps 3,4, and 5, the functions used will require the parameter numeric_only=True to be passed to specify that only numbers will be calculated (as the input file contains strings for student names).
import pandas as pd
file_name = input()
# TODO: Read in file_name as a dataframe
# TODO: Output rows by descending Final scores
print("
Max Scores:")
# TODO: Output the max scores of each assignment
print("
Median Scores:")
# TODO: Output the median scores of each assignment
print("
Average Scores:")
# TODO: Output the average scores of each assignment.
print("
Standard Deviation:")
# TODO: Output the standard devation of each assignment.

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

Step: 3

blur-text-image

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

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions