This is a python question. You have a dataframe called df…
This is a python question. You have a dataframe called df with columns test_coupon, shopping_cart and num_purchase. To make the table below, what should go in the blank in the command table = df._______.agg({‘shopping_cart’ : ‘mean’, ‘num_purchase’ : ‘mean’}) print(table) shopping_cart num_past_purch test_coupon 0 0.30 2.0 1 0.29 2.1