<?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: Copy/Paste Certain Attributes into a new field in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/copy-paste-certain-attributes-into-a-new-field/m-p/1073258#M42588</link>
    <description>&lt;P&gt;Via field calculation "z" represents your field, so replace it with !YourFieldName! in line 2.&lt;/P&gt;&lt;P&gt;Results should obviously go into an integer field&lt;/P&gt;&lt;LI-CODE lang="python"&gt;z = "123 ABC Street"
int("".join([i for i in z if i.isdigit()]))
123&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Jun 2021 16:18:41 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2021-06-28T16:18:41Z</dc:date>
    <item>
      <title>Copy/Paste Certain Attributes into a new field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/copy-paste-certain-attributes-into-a-new-field/m-p/1073246#M42587</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if it was possible to copy only integers from an existing field in an attribute table and paste them into a newly created field into the same attribute table. Basically, I have an address field that contains the entire address (number and street name) and I would like to separate out a column specifically for the street number.&amp;nbsp; Any advice would be appreciated. Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 16:11:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/copy-paste-certain-attributes-into-a-new-field/m-p/1073246#M42587</guid>
      <dc:creator>BennyNein</dc:creator>
      <dc:date>2021-06-28T16:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Copy/Paste Certain Attributes into a new field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/copy-paste-certain-attributes-into-a-new-field/m-p/1073258#M42588</link>
      <description>&lt;P&gt;Via field calculation "z" represents your field, so replace it with !YourFieldName! in line 2.&lt;/P&gt;&lt;P&gt;Results should obviously go into an integer field&lt;/P&gt;&lt;LI-CODE lang="python"&gt;z = "123 ABC Street"
int("".join([i for i in z if i.isdigit()]))
123&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 16:18:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/copy-paste-certain-attributes-into-a-new-field/m-p/1073258#M42588</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-06-28T16:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Copy/Paste Certain Attributes into a new field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/copy-paste-certain-attributes-into-a-new-field/m-p/1073338#M42599</link>
      <description>&lt;P&gt;If your address field is in the form of:&lt;/P&gt;&lt;P&gt;1234 S MAIN ST&lt;/P&gt;&lt;P&gt;Use the field calculator like this:&lt;/P&gt;&lt;P&gt;RIght click on your new field and select calculate, leaving the Expression Type as Python 3.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Define a new function in the code block window:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def extractHouseNumber(inAddress):
    houseNumber = inAddress.split(' ')[0]
    return houseNumber&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then enter the function name and pick your address field name as the function parameter:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoeBorgione_0-1624901154919.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/17197iD08A7A89A73C91D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoeBorgione_0-1624901154919.png" alt="JoeBorgione_0-1624901154919.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 17:31:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/copy-paste-certain-attributes-into-a-new-field/m-p/1073338#M42599</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-06-28T17:31:06Z</dc:date>
    </item>
  </channel>
</rss>

