I am trying to write a series of asymmetric tables into a single excel/csv file. The tables will generally have 4 columns where the names match, but ideally, I want to completely avoid using column names. I want the column names for each table written above that table.
Example:
Table 1
| Name | Age | Income |
| John | 30 | 40000 |
| Barb | 35 | 50000 |
| Tom | 40 | 45000 |
Table 2
| Name | State | Height | Weight |
| John | Ohio | 185 | 82 |
| Sarah | New York | 170 | 65 |
| Carla | Nevada | 181 | 74 |
Output
| Field1 | Field2 | Field3 | Field4 |
| Name | Age | Income | |
| John | 30 | 40000 | |
| Barb | 35 | 50000 | |
| Tom | 40 | 45000 | |
| | | | |
| Name | State | Height | Weight |
| John | Ohio | 185 | 82 |
| Sarah | New York | 170 | 65 |
| Carla | Nevada | 181 | 74 |
This final table will get written to excel. The resulting column names (Field1, Field2, etc) will get dropped.