Consider df
:
In [463]: df = pd.DataFrame({'date': ['November 4, 2016', 'December 1, 2017']})
In [464]: df
Out[464]:
date
0 November 4, 2016
1 December 1, 2017
Use pd.to_datetime
with Series.dt.strftime
:
In [469]: df['date'] = pd.to_datetime(df['date'], format='%B %d, %Y').dt.strftime('%d/%m/%y')
In [479]: df
Out[479]:
date
0 04/11/16
1 01/12/17
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…