I am trying to output multiple csvs from a function - but also name the csv per the name of the df.
dfs = ( df1, df2 , df3 , df4)
for df in dfs:
    def to_csvs(df, 'df name as csv name'):
        df.to_csv('example.csv')
        return df
I want to use a loop to feed in my multiple dfs and have a parameter in the function input that would name the csv output as well - is that possible?
 
     
    