I have a CSV file that looks like this:
|100|Header1|Header2|
|120| xxx | xxx |
|120| yyy | yyy |
|120| zzz | zzz |
|200|Header3|Header4|
|220| xxx | xxx |
|220| yyy | yyy |
|220| zzz | zzz |
|300|Header5|Header6|
|320| xxx | xxx |
|320| yyy | yyy |
|320| zzz | zzz |
All headers start at a series of 100 which need to be split into it's individual csv file. So in this case there will be 3 csv files, with one having rows 100 and 120s, the second csv file with 200 and 220s and third with 300 and 320s.
The 100, 200 and 300 rows indicate the start of a new table. is there an efficient way to do this in pandas without having to loop through and create a new csv file if it encounters 100, 200 etc?