0

I have many CSV files that are my datapoint files, they are different combinations of my test subjects. enter image description here

I have some code that runs one CSV at a time, but I have to comment/uncomment when I want my code the analyse the next CSV.

Is there any good looping techniques that I can apply such that the processing/iteration is automatic for all my CSVs?

Thank you

0

1 Answer 1

2

Yes, create list of filenames and then loop by it:

files = ['BenNIC O.csv','BenQQ O.csv']

for file in files:
     df = pd.read_csv(file)
     #processing
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.