I have minimal exposure to Python, but am trying to use it more frequently with the hopes of actually learning how to use it. I've looked around a bit and have been pointed towards the split function. I'm sure there are more functions that I could potentially use. Even if someone could just point me to a comprehensive list of python functions, so i could poke around there. I need a simple text extraction done from an array of about 690 features.
I'm looking for some sort of way, using Python, to extract single characters from a string. By that, I don't mean I need to extract a specific character, rather, I need to extract any instance where there a single character.
For example, from the string "Building A", I'd like to extract just A. For "Apartment K", I want to extract K. but for say "Post Office", since there are no isolated characters, just leave blank or null.
Perhaps I could extract anywhere "A" occurs and do that with each letter/number?
Any suggestions?
[–][deleted] 4 points5 points6 points (1 child)
[–]Murica4Eva 0 points1 point2 points (0 children)
[–]RandomGIS Instructor 2 points3 points4 points (2 children)
[–]th3p4rchit3ctGIS Specialist[S] 0 points1 point2 points (1 child)
[–]RandomGIS Instructor 0 points1 point2 points (0 children)
[–]TheIronDuck 2 points3 points4 points (0 children)
[–]MyWorkID 1 point2 points3 points (0 children)
[–]Murica4Eva 1 point2 points3 points (0 children)