Model/Script for populating multiple values in a row?

Discussion created by aoyama334 on Aug 25, 2011
Latest reply on Aug 30, 2011 by smehta-esristaff
I'm basically trying to find out how to make a table go from this

A, 12
A, 23
B, 7
B, 3
B, 50
B, 3
C, 4
D, 39
D, 28

to this

NAME, V1, V2, V3, V4
A, 12, 23
B, 7, 3, 50, 3
C, 4
D, 39, 28

I've already created a model to add the value fields, but I'm unsure how to combine the "letter fields."

Looking around, it seems that a response on this fourm answered the question

but I'm not sure how to convert the script to the newest version of python. I'm still new at it.

Any help is appreciated