adjust_data.frame function

Adjust to data frame