sqlserver pandas 日期

select * from sqlserver,   convert(date, 23) => YYYY-MM-DD

pandas convert to date, drop time part,

df2['ym1'] = pd.to_datetime(df2['ym']).dt.date
posted @ 2022-02-28 17:06  CrossPython  阅读(26)  评论(0编辑  收藏  举报