Oct-27-2018, 02:00 AM
Okay. Make a function that takes a key and returns a value from the dictionary I showed you. Send that function to the map method of df['pclass']. That will give you a column with the age replacements. Send that column to the fillna method of the age column.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures