【问题标题】:Is there a way to plot the sum of all the rows that have the same name有没有办法绘制所有具有相同名称的行的总和
【发布时间】:2020-09-09 09:31:19
【问题描述】:

This is a picture 我的数据框和我尝试绘制的代码以绘制所有类型全球销售额的总和
This is a picture 的图表

请原谅我的问题描述不好,我不知道如何描述它

【问题讨论】:

  • 请不要发图片。发布您可以复制的代码和数据。

标签: python pandas matplotlib jupyter-notebook seaborn


【解决方案1】:

这将为您提供所需的系列:

genre_sales_df.groupby('Genre').sum()['Global_Sales']

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-12
    • 1970-01-01
    • 1970-01-01
    • 2022-01-08
    相关资源
    最近更新 更多