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).
Input and Output Example
NOTE: Download Student Info. tsv to view the contents of the file.
E4 Run
main.py
import pandas as pd
file_name = input ()
# TODO: Read in file_name as a dataframe
# TOD0: 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.
image text in transcribed

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

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions