7.1. Exercises
Practice Operations with Dataframe columns
Instructions:
Running a coding exercise for the first time could take a bit of time for everything to load. Be patient, it could take a few minutes.
When you see ____ in a coding exercise, replace it with what you assume to be the correct code. Run it and see if you obtain the desired output. Submit your code to validate if you were correct.
Let’s split up a column of dtype object.
Tasks:
- Split up the column
Birth Dateinto 3 separate columns namedBirth_Day,Birth_MonthandBirth_Year. - Name this new dataframe
birthdate_df. - Save these as columns in the
canucksdataframe as dtypeint.