Pandas DataFrame purchases stores information about purchases: customer_name, good_name, good_amount. DataFrame goods stores goods' prices. DataFrame discounts stores discounts (in %) for some customers.
Input Example:
Write the function totals(purchases, goods, discounts), that returns pandas DataFrame (rows contain all customer_names from purchases, columns contain all goods from goods, values contain the total sum of money for particular customer and good).
Output Example (based on Input Example data):
Input Example:
Write the function totals(purchases, goods, discounts), that returns pandas DataFrame (rows contain all customer_names from purchases, columns contain all goods from goods, values contain the total sum of money for particular customer and good).
Output Example (based on Input Example data):