更改小时和非存在时间错误: 2019-03-31 01:50:2445 5000

这是我的密码 data = result["Document"] df = pd.DataFrame(data) df["Created"] = pd.to_datetime(df["Created"]) df["Created"] = pd.to_datetime(df["Created"],errors='coerce').dt.tz_localize('Europe/London').dt.tz_convert('Europe/Paris') #print(df)hour df['Created'] = df['Created'].dt.date df["Barcode"] = df["Barcode"].astype(str) fig, ax = plt.subplots() myFmt = mdates.DateFormatter('%Y-%m-%d %H:%M') ax.xaxis.set_major_formatter(myFmt) df1 = df.groupby(["Created"])["Tag"].count().reset_index() df2 = df[df["Tag ……

共1个回答, 标签: python timezone