With python 3: 1). Append a new variable ( Amount= UnitPrice* Units) 2). Average unit price for
Fantastic news! We've Found the answer you've been seeking!
Question:
With python 3:
1). Append a new variable ( Amount= UnitPrice* Units)
2). Average unit price for each region. Use the groupby()method
3). Average unit price for each region. Use the pivot_table()method.
Date | Region | Item | UnitPrice | Units |
14-Jul-18 | East | Pen Set | 3.85 | 71 |
16-Jul-18 | East | Binder | 14.00 | 31 |
22-Jul-18 | Central | Pen Set | 10.50 | 46 |
25-Jul-18 | West | Binder | 22.00 | 44 |
Related Book For
Mathematical Applications for the Management Life and Social Sciences
ISBN: 978-1305108042
11th edition
Authors: Ronald J. Harshbarger, James J. Reynolds
Posted Date: