Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas month number to name

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())
 
PREVIOUS NEXT
Tagged: #pandas #month #number
ADD COMMENT
Topic
Name
9+3 =