I'm using league/csv:^9.6
(9.6.2).
I need to parse CSV files that have lots of columns (150+), and extract small amount of them (8). Those columns are not fixed in terms of offset (position unknown), but they have stable unique header – so i want to select them by header, not by offset.
But here is the problem: library throws an exception about duplicate headers. Is there any solution how to just skip them and parse all other rows correctly?
Or any workaround how to strip them from file before using this library? Position and count of those duplicates is unknown beforehand.
Thanks!