I want to append new values to an existing column with values in a dataframe.
Example: This is the initial dataframe
name gender age
harry M 10
martha F 11
After checking conditions the data frame expands and adds a new column with values:
name gender age remarks
harry M 10 is_boy
martha F 11 is_girl
and again the process continues
This is the Final dataframe
name gender age remarks
harry M 10 is_boy | iowa | 2008
martha F 11 is_girl| florida | 2007
This is a bit tricky for me as I have spend a lot of time behind this.
Would like to know how the code will look like.