- I have a folder with about 100 CSVs (
Downloads/challenges
). - Each CSV has the same 50+ columns.
- Each CSV is titled something like
azerbaijan_challenge_entrants.csv
.
I want to create one new CSV (all_entrants.csv
) that includes all data from all 100 CSVs, adding one new column: challenge
, which should include the name of the CSV that the row data came from.
I generally like Python for tasks like this. But I am struggling to make this work. Any help would be appreciated!