2

I would like to know how can I add a new field in an attribute table with a name based on the value of another field. I mean, if I had a field with values 1,2,3 and 4, I need to add four new fields like A1, A2, A3 and A4 (A is aleatory, only for giving a name to new field). I did it in ModelBuilder but I would like to do the same in a script for python.

Can anyone help me with this task?

I'm using ArcGIS 10.2.1 and Python 2.7.5

closed as off-topic by Midavalo, Dan C, underdark Sep 8 '16 at 19:17

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This problem cannot or can no longer be reproduced. Changes to the system or to the asker's circumstances may have rendered the question obsolete, or the question does not include a procedure to enable potential answerers to reproduce the same symptoms. Such questions are off-topic as they are unlikely to help future readers, but editing them to include more details can lead to re-opening." – Midavalo, Dan C, underdark
If this question can be reworded to fit the rules in the help center, please edit the question.