dataframe_to_dims function

Create dimensions from dataframe