I am trying to write a python script that combines entries in a csv file.
a, 1, A
a, 2, B
b, 3, C
b, 4, D
to
a, 1, A, 2, B
b, 3, C, 4, D
The image below shows a more complete picture of my csv file.
I've tried using the csv and pandas libraries, but I'm lost. I am new to coding and this is way over my head right now.
EDIT: It will not always be 2 rows for each letter, it can vary and if that's the case, each one will add onto the row, for example it might be
a, 1, A, 2, B, 3, C, 4, D
b, 5, E, 6, F
c, 7, G, 8, H, 9, J, 10, K, 11, L, 12, M –