import numpy as np month_number = 4 month_name = np.choose(month_number - 1, pd.date_range(start=0, freq='M', periods=12).month_name())