Skip to content
Advertisement

write filename when iterating through dataframes

I am passing to a function several pandas df:

JavaScript

df here will be a pandas dataframe.

How can I assign the diferent parameters of *args to a string like above '/transformed/'+str(df)+'.table',sep='t' ??

I want to have three files written to disk with the following path:

JavaScript

Advertisement

Answer

ok I think I managed.

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement