I wasn\'t sure exactly how to word the title. Essentially, I am looking to go from this input (lets call this dataframe sampledata)