df_agg = pd.pivot_table(df, values= 'total_revenue', index= 'order_year',aggfunc= 'sum')
When I run the above code, this is what I get. I would love to get the entire figures for the total revenue column.
order_year | total_revenue |
---|---|
2010 | 4.95994e+08 |
2011 | 5.23411e+08 |
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.