I am trying to create a dictionary from two columns of a DataFrame (df)
mydict={x :y for x in df['Names'] for y in df['Births']}
But all of the values are the same(the last value in the column)!
{'Bob': 973, 'Jessica': 973, 'John': 973, 'Mary': 973, 'Mel': 973}
I checked the column and it has many other values, what am I doing wrong?