This is for mixed abbreviations and full month names, for example:
Dec 31, 2017 December 31, 2017 Aug 31, 2017 Feb 10, 2018 March 1, 2018 Jun 2, 2019
If you do this in a Pandas Dataframe with actual dates, and you do not want June to complete the display in Junee :
def replace_month_abrev(date_string): month_dict = {"Jan ": "January ", "Feb ": "February ", "Mar ": "March ", "Apr ": "April ", "May ": "May ", "Jun ": "June ", "Jul ": "July ", "Aug ": "August ", "Sep ": "September ", "Sept ": "September ", "Oct ": "October ", "Nov ": "November ", "Dec ": "December "}
source share