<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Calculate fields with parsed attributes from one field in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-with-parsed-attributes-from-one/m-p/1172835#M55037</link>
    <description>&lt;P&gt;Hello Johannes,&lt;/P&gt;&lt;P&gt;I would like to use the field calculator.&amp;nbsp; I tried this calc in the "HouseNumber" field:&lt;/P&gt;&lt;P&gt;!SITUS_1!split(" ")[0]&lt;/P&gt;&lt;P&gt;It didn't work.&amp;nbsp; any ideas?&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2022 14:49:59 GMT</pubDate>
    <dc:creator>ABishop</dc:creator>
    <dc:date>2022-05-11T14:49:59Z</dc:date>
    <item>
      <title>Calculate fields with parsed attributes from one field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-with-parsed-attributes-from-one/m-p/1172788#M55027</link>
      <description>&lt;P&gt;I hope somebody can help with this!&lt;/P&gt;&lt;P&gt;Basically, I have a table with a situs address field and&amp;nbsp; I want to use this field to calculate new fields I have created which are named respectively "HouseNumber", "FullStreetName", "PrefixDirection", "StreetName", and "SuffixType".&amp;nbsp; I am thinking this is a parse function of some sort?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See attached pics of the table I want to populate vs. the table that is already populated.&amp;nbsp; I would do this manually, but I have 96K records to edit.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ABishop_0-1652276209060.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41073i9E752804BB31D200/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ABishop_0-1652276209060.png" alt="ABishop_0-1652276209060.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ABishop_1-1652276295188.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41074iE7E303BAFDD0E182/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ABishop_1-1652276295188.png" alt="ABishop_1-1652276295188.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 13:38:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-with-parsed-attributes-from-one/m-p/1172788#M55027</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2022-05-11T13:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate fields with parsed attributes from one field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-with-parsed-attributes-from-one/m-p/1172813#M55032</link>
      <description>&lt;P&gt;If the format is the same for each address, it's really easy.&lt;/P&gt;&lt;P&gt;You can do it with the field calculator:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# field calculation for HouseNumber
# Python
!FullStreetName!.split(" ")[0]

# other fields are analogous, just use different indexes&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you can do it all at once with an UpdateCursor:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;with arcpy.da.UpdateCursor("AdressLayer", ["SITUS_1", "HouseNumber", "FullStreetName", "PrefixDirection", "StreetName", "SuffixType"]) as cursor:
    for row in cursor:
        situs = row[0]
        number, dir, name, type = situs.split(" ")
        full_name = " ".join([dir, name, type])
        new_row = [situs, number, full_name, dir, name, type]
        cursor.updateRow(new_row)
        &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 14:55:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-with-parsed-attributes-from-one/m-p/1172813#M55032</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-05-11T14:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate fields with parsed attributes from one field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-with-parsed-attributes-from-one/m-p/1172835#M55037</link>
      <description>&lt;P&gt;Hello Johannes,&lt;/P&gt;&lt;P&gt;I would like to use the field calculator.&amp;nbsp; I tried this calc in the "HouseNumber" field:&lt;/P&gt;&lt;P&gt;!SITUS_1!split(" ")[0]&lt;/P&gt;&lt;P&gt;It didn't work.&amp;nbsp; any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 14:49:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-with-parsed-attributes-from-one/m-p/1172835#M55037</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2022-05-11T14:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate fields with parsed attributes from one field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-with-parsed-attributes-from-one/m-p/1172841#M55038</link>
      <description>&lt;P&gt;Oops, missed a dot in my answer, I edited it.&lt;/P&gt;&lt;P&gt;!SITUS_1!&lt;STRONG&gt;.&lt;/STRONG&gt;split(" ")[0]&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 14:56:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-with-parsed-attributes-from-one/m-p/1172841#M55038</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-05-11T14:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate fields with parsed attributes from one field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-with-parsed-attributes-from-one/m-p/1172844#M55040</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 14:58:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-with-parsed-attributes-from-one/m-p/1172844#M55040</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2022-05-11T14:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate fields with parsed attributes from one field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-with-parsed-attributes-from-one/m-p/1172845#M55041</link>
      <description>&lt;P&gt;Only... how do I get the next set of text?&amp;nbsp; For instance for "FullStreetName" I need the text "SW 125TH TER" from the string "9995 SW 125TH TER".&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 15:00:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-with-parsed-attributes-from-one/m-p/1172845#M55041</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2022-05-11T15:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate fields with parsed attributes from one field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-with-parsed-attributes-from-one/m-p/1172851#M55044</link>
      <description>&lt;LI-CODE lang="python"&gt;# HouseNumber
!SITUS_1!.split(" ")[0]

# PrefixDirection
!SITUS_1!.split(" ")[1]

# StreetName
!SITUS_1!.split(" ")[2]

# Street Type
!SITUS_1!.split(" ")[3]

# FullStreetName is a little different: split by space, take everything except the first element (the house number) and join by space
" ".join(!SITUS_1!.split(" ")[1:])&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 11 May 2022 15:10:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-with-parsed-attributes-from-one/m-p/1172851#M55044</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-05-11T15:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate fields with parsed attributes from one field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-with-parsed-attributes-from-one/m-p/1172853#M55045</link>
      <description>&lt;P&gt;it worked!&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 15:13:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-with-parsed-attributes-from-one/m-p/1172853#M55045</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2022-05-11T15:13:05Z</dc:date>
    </item>
  </channel>
</rss>

