dat_df2[time_col] = pd.to_datetime(dat_df2[time_col])  # 前
dat_df2[time_col] = pd.to_datetime(dat_df2[time_col], errors='coerce')  # 后

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注