File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ # Explanation of Modifications
2+
3+ ** Support for Multiple CSV Files:**
4+
5+ Modification: We now accept multiple CSV files, split by commas, in the csv_files list.
6+
7+ Sheet Name: For each CSV file, a new sheet is created, named after the CSV file (without the extension).
8+
9+ Loop: We loop over each CSV file in csv_files and process it individually.
10+
11+ ** Automatic CSV Header Detection and Formatting:**
12+
13+ Modification: The first row of each CSV file is detected as the header.
14+
15+ Formatting: The header row is formatted with bold text (Font(bold=True)) and a yellow background (PatternFill).
16+
17+ Flag: A header_detected flag ensures that formatting is only applied to the first row
18+
19+ ** Handling Empty or Invalid Files:**
20+
21+ Error handling remains in place for file not found and general exceptions.
22+
23+ #Thank You
You can’t perform that action at this time.
0 commit comments