Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

use list to calculate or update fields

$
0
0
I have a list I want to use to update cells in a field. I used SearchCursor to populate a list based on the number:

['Horse', 'Dog']

What I want my table to look like:

Animal Number AnimalNumber
Horse 777 Horse, Dog
Dog 777 Horse, Dog
Cat 999 Cat

I'm stumped. I would like to access my list with row values (ie list[0], list[1]) and use an expression to update/calculate the field but not sure if this the way to go about it.

Viewing all articles
Browse latest Browse all 2485

Trending Articles