I have a CSV file that has the 3rd column as an entity like A1, B1, C1, etc. but all entity has different columns count for example --
- Entity A1 has 7 columns
- Entity B1 has 10 columns
- Entity C1 has 5 columns
- Entity D1 has 20 columns The CSV file has data like the below combine.csv
New,2923,A1,3443,44,333,4Y
New,2924,A1,3443,43,333,3Y
New,2925,A1,3443,42,333,3Y
New,2925,A1,3443,41,333,2Y
New,2122,B1,3413,21,313,3Y,WESS,F,Date=20230510
New,2121,B1,3423,21,334,3Y,WESS,F,Date=20230510
New,2120,B1,3423,21,335,2Y,WESS,F,Date=20230510
New,2122,C1,3413,21,313
New,2121,C1,3423,21,334
New,2120,C1,3423,21,335
three separate CSV files
A1.csv
New,2923,A1,3443,44,333,4Y
New,2924,A1,3443,43,333,3Y
New,2925,A1,3443,42,333,3Y
New,2925,A1,3443,41,333,2Y
B1.csv
New,2122,B1,3413,21,313,3Y,WESS,F,Date=20230510
New,2121,B1,3423,21,334,3Y,WESS,F,Date=20230510
New,2120,B1,3423,21,335,2Y,WESS,F,Date=20230510
C1.csv
New,2122,C1,3413,21,313
New,2121,C1,3423,21,334
New,2120,C1,3423,21,335
so I need to find any solution.
I need to find any solution to generate separate CSV files