Add a bar with size equal to the mean of the "Height" column in the mens_rowing DataFrame and an error-bar of its standa

动态 未结 0 80
小小草
小小草 LV1 2023年9月23日 23:40 发表
下面是完整代码: ```python fig, ax = plt.subplots() # Add a bar for the rowing "Height" column mean/std ax.bar("Rowing", mens_rowing["Height"].mean(), yerr=mens_rowing["Height"].std()) # Add a bar for the gymnastics "Height" column mean/std ax.bar("Gymnastics", mens_gymnastics["Height"].mean(), yerr=mens_gymnastics["Height"].std()) # Label the y-axis ax.set_ylabel("Height (cm)") plt.show() ```
收藏(0)  分享
相关标签: 智能问答
问题没解决?让AI助手帮你作答 AI助手
0个回复
  • 消灭零回复