You can set the locale before you convert the time. here’s the table of locales

import locale
locale.setlocale(locale.LC_ALL,'it_IT.UTF-8') # sets to italy but can be any locale

df['New_Date'] = pd.to_datetime(df['Date'], format='%d %B %Y')

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top