Your program should read data from a CSV file using the csv module
Reading data from the file into the program will require type conversion from strings to floats
Using list processing techniques (including list slicing) [Lecture 6] will allow you to store the data in a reasonable convenient way. It is suggested that you read the CSV file into a list. Each element in the list would represent an individual duck, Each individual record would contain the ID, species name, category, and three tuples consisting of pairs of the kind of data observed and its value. For instance:
[…,
[99, “tufted”, “diving”, (“length_cm”, 42.8), (“wingspan_cm”, 72.3), (“body_mass_g”, 711.32)],
[100, “mallard”, “dabbling”, (“length_cm”, 51.2), (“wingspan_cm”, 86.7), (“body_mass_g”, 991.22)],
…]
Choosing data records for your scatter plot and bar chats
The scatter plot requires the choice of a penguin’s attribute by name and the bar chart requires the choice of an ID number, using a user input from the keyboard
Outputting the data
The output using the matplotlib/pyplot module to represent the data. The required parameters are strings, floats, and lists.
Offering the user the choice of a scatter plot, bar chart, or to exit the software.
This requires input from the user and the use of iteration . You will probably also need to use assignment with a conditional .
The code will be run using Python 3.7. It is highly unlikely the version number will matter given the nature of the assignment. If your code does not work as a result of the wrong version number, I will attempt to run it using the version of Python you developed the software in. It must be written for Python 3.
THE FILES ATTACHED ARE SO IMPORTANT
use this duck data file to insert the data needed and attach the csv file please!