📌  相关文章
📜  将日期时间转换为日期熊猫 - Python 代码示例

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

代码示例2
# Changing object type column to datetime
df['date_col'] = pd.to_datetime(df.date_col)

# Creating new column with just the date
df['new_date_col'] = df['date_col'].dt.date