open_in_new
content_copy
max_cust = df.groupby("segment").customers.transform(max)