So during my last line of function, I wrote something like:

`return pd.DataFrame(data), pd.DataFrame(data).to_csv(folder_path + '/' + csv_name)`

It creates a csv file in the directory I want correctly, but the object created out of the function is a tuple instead of a pd dataframe.

Is there a way I can make my function do both things at once?