I have a stacked-style data frame that looked like this:
period customer pay 2 John 400 3 Doe 300 1 Jane 100 1