This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the dictionary | |
the_dict = dict() | |
# open the dataset | |
f = open("births.csv", 'r') | |
# read the dataset | |
text = f.read() | |
# split the dataset aka put it in list | |
data = text.split('\n') | |
# cut the heading year /year,month,date_of_month,day_of_week,births | |
data_no_head = (data[1:-1]) |