I have a date column that has the following format:
date
10jan2018
12feb2018
14mar2018
And so on. I guess the best approach is to turn the middle string into a number, and then apply todatetime() so I created a dictionary like this:
dict_month={'jan':01, 'feb':02,'mar':03,'apr':04,'may':05,'jun':06'
'jul':07, 'aug':08,'sep':09,'oct':10,'nov':11,'dec':12}
But I'm not sure how to proceed. Maybe I could use a regex, but I'm not sure how to combine regex and dictionary.
Any ideas?