extracting just month and year from pandas datetime column (python),df['mnth_yr'] = df['date_column'].apply(lambda x: x.strftime('%B-%Y'))