What I want to do:
data 2017/01 2017/02 2017/03 ....
ABC 12 22 08 ....
EFG 07 16 12 ....
I want to convert col names:
data Jan-2017 Feb-2017 Mar-2017 ....
ABC 12 22 08 ....
EFG 07 16 12 ....
I tried the following:
pd.to_datetime(pd.Series(['2017/01']), format="%Y/%m")
Which led to:
0 2017-01-01
dtype: datetime64[ns]
But I'm not sure how to get the result I want. Any idea?
source
share