procesing pandas dataframe and .csv files