<?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: Fixing attributes...from St to Street  in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/fixing-attributes-from-st-to-street/m-p/552609#M31304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this can be done in Python.&amp;nbsp; The Python code can be placed in the field calculator, or a pure Python run can be done. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jan 2016 21:12:07 GMT</pubDate>
    <dc:creator>ChrisDonohue__GISP</dc:creator>
    <dc:date>2016-01-04T21:12:07Z</dc:date>
    <item>
      <title>Fixing attributes...from St to Street</title>
      <link>https://community.esri.com/t5/data-management-questions/fixing-attributes-from-st-to-street/m-p/552607#M31302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to fix my attribute records in Arcmap. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do a bulk fixing, to find all my St and change it to Street?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="St vs Street.png" class="image-1 jive-image" src="/legacyfs/online/164425_St vs Street.png" style="width: 620px; height: 333px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 21:10:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/fixing-attributes-from-st-to-street/m-p/552607#M31302</guid>
      <dc:creator>VaneiriKeme</dc:creator>
      <dc:date>2016-01-04T21:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Fixing attributes...from St to Street</title>
      <link>https://community.esri.com/t5/data-management-questions/fixing-attributes-from-st-to-street/m-p/552608#M31303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is Find and Replace in Table options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/164702_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 21:11:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/fixing-attributes-from-st-to-street/m-p/552608#M31303</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-01-04T21:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Fixing attributes...from St to Street</title>
      <link>https://community.esri.com/t5/data-management-questions/fixing-attributes-from-st-to-street/m-p/552609#M31304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this can be done in Python.&amp;nbsp; The Python code can be placed in the field calculator, or a pure Python run can be done. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 21:12:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/fixing-attributes-from-st-to-street/m-p/552609#M31304</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2016-01-04T21:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Fixing attributes...from St to Street</title>
      <link>https://community.esri.com/t5/data-management-questions/fixing-attributes-from-st-to-street/m-p/552610#M31305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or select thuroghfare trailingtype = 'ST' and then calc thuroghfare trainingtype = "STREET"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 21:14:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/fixing-attributes-from-st-to-street/m-p/552610#M31305</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2016-01-04T21:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Fixing attributes...from St to Street</title>
      <link>https://community.esri.com/t5/data-management-questions/fixing-attributes-from-st-to-street/m-p/552611#M31306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a simple Python field calculator example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;!fieldnamehere!.replace(' ST', ' STREET')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Longer example for addressing multiple changes.&amp;nbsp; Use your fieldname instead of &lt;EM&gt;FacilityAddress&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def StreetSuffix(FacilityAddress):
&amp;nbsp; list = FacilityAddress.split()
&amp;nbsp; for item in range(len(list)):
&amp;nbsp;&amp;nbsp;&amp;nbsp; if list[item] == 'STREET':
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list[item] = list[item].replace("STREET", "ST")
&amp;nbsp;&amp;nbsp;&amp;nbsp; if list[item] == 'STREET,':
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list[item] = list[item].replace("STREET,", "ST")
&amp;nbsp;&amp;nbsp;&amp;nbsp; if list[item] == 'STR.':
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list[item] = list[item].replace("STR.", "ST")
&amp;nbsp;&amp;nbsp;&amp;nbsp; if list[item] == 'STR,':
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list[item] = list[item].replace("STR,", "ST")
&amp;nbsp;&amp;nbsp;&amp;nbsp; if list[item] == 'ST.':
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list[item] = list[item].replace("ST.", "ST") 
&amp;nbsp;&amp;nbsp;&amp;nbsp; if list[item] == 'ST,':
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list[item] = list[item].replace("ST,", "ST")
&amp;nbsp;&amp;nbsp;&amp;nbsp; if list[item] == 'WAY':
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list[item] = list[item].replace("WAY", "WY") 
&amp;nbsp;&amp;nbsp;&amp;nbsp; if list[item] == 'WAY,':
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list[item] = list[item].replace("WAY,", "WY") 
&amp;nbsp;&amp;nbsp;&amp;nbsp; if list[item] == 'WY.':
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list[item] = list[item].replace("WY.", "WY")
&amp;nbsp;&amp;nbsp;&amp;nbsp; if list[item] == 'WY,':
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list[item] = list[item].replace("WY,", "WY")
&amp;nbsp; return " ".join(list) &lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Credit to &lt;A href="https://community.esri.com/migrated-users/19932" target="_blank"&gt;Darren Wiens&lt;/A&gt; and several others knowledgeable in Python for coming up with this, which I gratefully &lt;SPAN style="text-decoration: line-through;"&gt;stole&lt;/SPAN&gt; borrowed.&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:53:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/fixing-attributes-from-st-to-street/m-p/552611#M31306</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2021-12-11T23:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Fixing attributes...from St to Street</title>
      <link>https://community.esri.com/t5/data-management-questions/fixing-attributes-from-st-to-street/m-p/552612#M31307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Darren! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 21:54:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/fixing-attributes-from-st-to-street/m-p/552612#M31307</guid>
      <dc:creator>VaneiriKeme</dc:creator>
      <dc:date>2016-01-04T21:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Fixing attributes...from St to Street</title>
      <link>https://community.esri.com/t5/data-management-questions/fixing-attributes-from-st-to-street/m-p/552613#M31308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it fixed. Saved me tons of hours. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 21:55:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/fixing-attributes-from-st-to-street/m-p/552613#M31308</guid>
      <dc:creator>VaneiriKeme</dc:creator>
      <dc:date>2016-01-04T21:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Fixing attributes...from St to Street</title>
      <link>https://community.esri.com/t5/data-management-questions/fixing-attributes-from-st-to-street/m-p/552614#M31309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;Now that I see this again, a more compact alternative may be (only lightly tested):&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;def&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; StreetSuffix(FacilityAddress):&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; &lt;/SPAN&gt;replace_dict = {
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'ST':['STREET','STREET,','STR.','STR,','ST.','ST,'],
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'WY':['WAY','WAY,','WY.','WY,']
&amp;nbsp; }

&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; list = FacilityAddress.split()&amp;nbsp; &lt;/SPAN&gt;
&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; &lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; item &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; range(len(list)):&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="background-color: inherit; color: black; font-weight: inherit; font-size: 9pt !important; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for key, value in replace_dict.iteritems():&lt;/SPAN&gt;
&lt;SPAN style="background-color: inherit; color: black; font-weight: inherit; font-size: 9pt !important; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if list[item] in value:&lt;/SPAN&gt;
&lt;SPAN style="background-color: inherit; color: black; font-weight: inherit; font-size: 9pt !important; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list[item] = key&lt;/SPAN&gt;
&lt;SPAN style="background-color: inherit; color: black; font-weight: inherit; font-size: 9pt !important; font-style: inherit;"&gt;&amp;nbsp; return &lt;SPAN class="string" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: blue; background-color: #f6f6f6;"&gt;" "&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000; background-color: #f6f6f6;"&gt;.join(list)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="background-color: inherit; color: black; font-weight: inherit; font-size: 9pt !important; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:53:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/fixing-attributes-from-st-to-street/m-p/552614#M31309</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-11T23:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fixing attributes...from St to Street</title>
      <link>https://community.esri.com/t5/data-management-questions/fixing-attributes-from-st-to-street/m-p/1546696#M45414</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/187104"&gt;@ChrisDonohue__GISP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just wanted to thank you for posting this field calculator expression. I needed to update addresses in a single field to change all abbreviations to fully spelled out words. I used this expression in ArcGIS Pro, created a list of changes I needed, and updated over 16000 records with little issues. It worked great!! A huge time saver, and I learned some good skills from it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 18:52:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/fixing-attributes-from-st-to-street/m-p/1546696#M45414</guid>
      <dc:creator>JonM32</dc:creator>
      <dc:date>2024-10-08T18:52:03Z</dc:date>
    </item>
  </channel>
</rss>

