I have a data set that contains first and last name, and a person's age. My initial thought was to store the data in a dictionary with the key being name but within this dataset, there could be duplicates that would always overwrite a person with the same name. I was wondering if there was any other data structure I may be missing that could store this data? (I am reading this data from a CSV)
Example of the data below in a dictionary:
{'nelson bighetti': 37, 'rick sanchez': 34, 'linda mort': 25 }
The end goal for this data would be to run some simple calculations such as finding the average age of all the people, and the median age of the dataset.