I have a data frame with where one of the columns contains a string “date code”. An example of this code is as follows:
“04_22”
which indicates the 4th month of the year 2022.
“11_23”
would indicate the 11th month of 2023.
Rather than working with this code in string, I would like to convert the column of string code to a column of proper date types. How can that be done?
That is very nice and intuitive. Suppose I knew that it was not the first of the month that the code indicated, but always the last day of the month, what would your solution look like then?