Oct-23-2023, 09:24 PM
I have a script with currently outputs a csv for a report.. But now multiple departments want access to the raw data.
I currently have this to_csv line in my script, but would like to be able to save the results to multiple locations for each department that wants the raw data
Is that the most optimal way to handle this.. I mean right now its only 3 different paths along with the original path that its currently saving to, So 4 total places.
I currently have this to_csv line in my script, but would like to be able to save the results to multiple locations for each department that wants the raw data
merged_results.to_csv(parts[0] + '_ip_output_' + dtstring +'.csv',header=False, index=False, quoting=None)I was thinking of building a list of departments and pathes and then have a for loop for each one in the list, run the above line with the appropriate path.
Is that the most optimal way to handle this.. I mean right now its only 3 different paths along with the original path that its currently saving to, So 4 total places.