About 98 results
Open links in new tab
  1. ValueError: substring not found - Python Forum

    Aug 8, 2022 · Let me first start this off by stating that I am a complete beginner to coding and my attempts to fix this have been limited. I am trying to follow this Arduino controlled piano robot. It takes …

  2. extract substring from a string before a word - Python Forum

    Nov 8, 2023 · extract substring from a string before a word !! Python Forum Python Coding General Coding Help Thread Rating: 1 2 3 4 5 ... Users browsing this thread: 1 Guest (s) View a Printable …

  3. arcgis desktop - Extracting substring from field in ArcMap using Python ...

    Jan 31, 2019 · Extracting substring from field in ArcMap using Python Parser of Field Calculator? Ask Question Asked 7 years ago Modified 7 years ago

  4. How to substring a number out of a string field using Python field ...

    Nov 10, 2020 · Using ArcGIS Desktop 10.7 I want to substring numbers as text out of a string field into a new string field with field calculator so that I can use them for layer symbology. The field contains high...

  5. arcpy - Python method for finding a substring within a string ...

    8 The reason why you're getting 'Global IBA' for every row is that Python's string.find () method returns an integer representing the substring's position within the string, not a boolean. When it can't find the …

  6. Using lambdas and map () to parse substrings in a single line

    Sep 20, 2020 · The code accomplishes this without meticulously converting the list to a string, replacing “444” and converting back into a list (which would have been my initial unpythonic first …

  7. Replace string in many files in a folder - Python Forum

    Oct 16, 2019 · This code changes a string in 1 text file in python s = open ("sample.txt").read () s = s.replace ('abcd', 'efgh') f = open ("mount.txt", 'w') f.write (s) f.close ()How do I change a single string …

  8. Python Question - how do I extract a part of a string

    The code below searches for the first occurence of the ".dwg" string and assigns a new substring (containing characters up to and including that occurence). text = "Denver.dwg Group …

  9. Searching for parts of a string or word - Python Forum

    Mar 15, 2021 · Hello, I´m trying to write a code create a little searching mashine. The code should be able to tell me by finding parts of a string or word that it is fond. I have written the following code: string1

  10. how to check if string contains ALL words from the list? - Python Forum

    Jul 22, 2020 · Hi guys, How can i check if string contains all words from the list? some_string = 'there is a big apple, but i like banana more than orange' some_list = It should return True