AnsweredAssumed Answered

Python to select younger of two polygons with similar attributes

Question asked by kear1384 on Jul 16, 2014
Latest reply on Jul 16, 2014 by kear1384

I have a .shp containing 31polygons with a date attribute identified by 28 unique (4 digit, string) numbers.  Three of the numbers have two polygons, I would like to select the younger of the two and delete the older.  Any suggestions?

 

I have used the collections.Counter to identify the duplicated numbers.  I understand search and update cursors and am thinking I can use one to find the FID, but am not sure how to build a query that says if the numbers are duplicated choose the largest (newer) date.

 

Thanks

Outcomes