df_to_msg function

Create a message from a data frame