compressDataFrame function

Compress a data frame into unique rows and frequencies