Hi there. I am trying to take a feature class attribute table with n columns and rearrange its table structure so I can use it as a "Many" table in a relationship class, but I am struggling on how to transpose the table in arcpy and preserve two index columns, in this example, OBJECTID and ObjectType and export it as a .dbf. I was thinking pandas could do this, but my attempts to implement it has failed so far. Appreciate any help! Thanks.
The attribute table is a typical feature class structure and looks like this:
What I need is the attribute structured like this:
how do you get 4 Red 's etc. Is it simply the number of Attr columns?
You would be better of doing this in numpy, pandas or even excel,
Pro lacks easy row replication and translation tools