Given a DataFrame df with columns region, product and sales, implement add_shares(df) that returns a copy with two new columns:
share: each row's sales as a fraction of its region's total (use groupby(...).transform('sum'))rank: rank within the region by sales, highest = 1, ties sharing the lower rank (method='min'), as integersKeep the original row order.