I have a dataframe jobs screenshot of dataframe
I need to add a new column ‘year’ to jobs data frame. This column should contain the corresponding year for each post_date (which is already a column). For example: for post_date value 2017-08-16 ‘year’ value should be 2017.
I am unsure how to insert a new column while also pulling data from a pre-existing column.