Hi
I have a set of overlapping points (1X, 20Z, 1A, 50D, 2B), and I would like to get the min and max values Min: 1A, Max: 50D.
The tool "Summarize attribute" get the min and max of integer.
How do you get the min and max of string + integer automatically?
Would you please let me know if there are any tools or codes available?
Thanks
How to extract numbers from a string in Python? - Stack Overflow
That will handle the splitting but not more simply
value = "20Z"
int(value[:-1])
will yield the number part.
Your problem is that you will have to process this to provide 2 arrays, which you can use to summarize by letter. OR if you don't care about the letter, then just take the min and max of the overlapping points with the new integer identifier
Hi
I have a set of overlapping points (1X, 20Z, 1A, 50D, 2B), and I would like to get the min and max values Min: 1A, Max: 50D.
The tool "Summarize attribute" get the min and max of integer.
How do you get the min and max of string + integer automatically?
Would you please let me know if there are any tools or codes available?
Thanks
@Greta, I am not sure why you re-posted your original question as a reply to Dan's comment. I suggest you either change the reply or simply delete it since it currently adds no value to the discussion.
it was a double-post so I merged them Josh
thank you I will try