Matching Histograms To Dataframe Function