Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get month name from date in pandas

df['Month'] = pd.to_datetime(df['Month'], format='%m').dt.month_name().str.slice(stop=3)

df

  Month client
0   Feb sss
1   Dec yyy
2   Jun www
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #month #date #pandas
ADD COMMENT
Topic
Name
8+1 =