喜欢可以关注【小猪课堂】公众号了解更多内容
datetime.datetime.now().strftime('%Y{y}%m{m}%d{d}').format(y='年', m='月', d='日')
df9['每期代偿日期'].apply(lambda x:x.strftime('%Y{y}%m{m}%d{d}').format(y="年",m="月",d="日"))
dates = p.to_datetime(p.Series(['20010101', '20010331']), format = '%Y%m%d')
dates.str
https://stackoverflow.com/questions/30132282/datetime-to-string-with-series-in-python-pandas
-----------------------------分享结束线------------------------------
喜欢可以关注【小猪课堂】公众号了解更多编程小技巧