I want to convert this df from an object to a datetime object, "ABR" is the Spanish for "APR"
Initial date | final date |
---|---|
30 ABR 21 | 31 MAY 21 |
30 JUN 21 | 31 JUL 21 |
my code:
import locale
locale.setlocale(locale.LC_TIME, '')
a["Fecha Inicial"].apply(lambda x: dt.strptime(x, "%d %b %y"))
ValueError
ValueError: time data '30 ABR 21' does not match format '%d %b %y'