''' Purpose: practice analyzing data from a useful dataset ''' # import helpful library to stream dataset aquisition import url ########## get the dataset to be analyzed ########## # specify data source DATASET_SOURCE = 'http://www.cs.virginia.edu/~cs1112/datasets/csv/best-sellers.csv' # get data for the dataset dataset = url.get_dataset( DATASET_SOURCE ) print( 'dataset: ', dataset ) # determine dataset header header = dataset[ 0 ] # determine and print books of the dataset books = dataset[ 1 : ] # determine number of books nbr_books = len( books ) ########## assist the user ########## # get the user's interest in the dataset reply = input( 'Enter interest: ' ) reply = reply.strip() label = reply.capitalize() # determine the column for that label column = ... # get the dataset elements for that column ...