📜  在 pandas 列中将日期截断为午夜 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:51.187000             🧑  作者: Mango

代码示例1
df['START_DATETIME'] = pd.to_datetime(df['START_DATETIME']).dt.normalize()
# -or-
df['START_DATETIME'] = pd.to_datetime(df['START_DATETIME']).dt.floor('D')