''' Purpose: for user-specified dataset, and two user-specified column labels column1 and column2: determines the minimum value min2 in column2 in the dataset determines min_label -- the column1 value whose column2 value equals min2 prints labeled explanatory information about min2 ''' # get ahold of helpful web functions import url # specify base web folder for datasets CSV_REPOSITORY = 'http://www.cs.virginia.edu/~cs1112/datasets/csv/' # get dataset of interest reply = input( 'Enter the name of a data set: ' ) name = reply.strip() link = CSV_REPOSITORY + name dataset = url.get_and_convert_csv_dataset( link ) # get the labels for the columns of interest reply = input( 'Enter a column label for the data set: ' ) column1 = reply.strip() reply = input( 'Enter a column label for the data set: ' ) column2 = reply.strip() print() # analyze the dataset for the requested information