I have a CSV where the data is structured like so:
Key | Value
A | 1, 2, 3
B | 4, 5
C | 1, 3, 5
I want to convert it into a CSV that looks like this:
Key | Value
1 | A, C
2 | A
3 | A, C
4 | B
5 | B, C
The current values are strings (not numbers) separated by commas. The keys are not unique - a key can appear multiple times, with different values. I've only done this previously where there was one value per line, not multiple.