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

Calculating (with Python) a 2nd field based on a 1st field in 10.2

$
0
0
I am attempting to write a script that takes one field and sorts it from largest to smallest. I then want to add another field next to the sorted field in order to indicate a sequential order of the first field (ranging from 1 to what ever is the last occurence is). In other words, calculate a numeric sequential order of a field and populate that field with numbers based and in conjunction with another field. Is it possible? Any tips ?

Viewing all articles
Browse latest Browse all 2485

Trending Articles