Answer the question
In order to leave comments, you need to log in
How to save 4 different csv files in Python?
There is a code:
for name, data in dat.groupby('mode'):
dat.to_csv("name" + ".csv")
print(name, data)
Answer the question
In order to leave comments, you need to log in
for i , name in enumerate(data):
print("".join([name, str(i), '.csv'])
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question