📜  按小时绘制 pandas - Python 代码示例

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

代码示例1
fig, axs = plt.subplots(figsize=(12, 4))

In [15]: air_quality.groupby(air_quality["datetime"].dt.hour)["value"].mean().plot(
   ....:     kind='bar', rot=0, ax=axs
   ....: )