can now save csv of dataframe for plot, but cannot make the plot properly