Home > Software design >  Loop through pandas data frame to create a dictionary
Loop through pandas data frame to create a dictionary

Time:07-05

I have a pandas data frame from which I'm trying to create a dictionary based on a users age, where age is the key and the data associated with it is the value. So lets say users with age 10 will be in a dictionary {Age:10, Data:[Pole, Carl]}

enter image description here

  • Related