Extracting just Month and Year from Pandas Datetime column (Python),df['mnth_yr'] = df['date_column'].apply(lambda x: x.strftime('%B-%Y'))