Added the dataframe making routine

Added the dataframe making routine