Given the following text, the first group by should be grouping by 'discount' not 'delivery'.
In Pandas, we can do a computation like this using an operation called groupby. Here’s are two examples. The first reports how many sales (rows) were made with each discount code, while the second summarize the total number of tickets sold by discount code:
Contact Details
joann.ordille@gmail.com
Which Web page has the problem?
https://dcic-world.org/…https://dcic-world.org/2023-02-21/python-tables-Pandas.html#%28part._.Aggregating_and_.Grouping_.Columns%29
What's the problem?
Given the following text, the first group by should be grouping by 'discount' not 'delivery'.
In Pandas, we can do a computation like this using an operation called groupby. Here’s are two examples. The first reports how many sales (rows) were made with each discount code, while the second summarize the total number of tickets sold by discount code:
events.groupby('delivery').count() events.groupby('discount')['numtix'].sum()
What browser are you seeing the problem on?
No response