Creating dataframe from a text file