I want to use reclass, the python function in the field calculator, using the Code Block, to apply to a new legend field (string). However, I want to apply it to a subset of the previously selected records and not to all. This subset should be a percentage of the selected records, to select randomly, and not to identify in the expression based on field values.

Kindly, anyone can tell me if reclass is the proper function and how should I construct the expression to choose a random subset of the selected records? If not can you suggest other relevant functions to perform that within the field calculator?

Thank you.

More Andreia Saavedra Cardoso's questions See All
Similar questions and discussions