<?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: Need help with extracting values from a field...... in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-extracting-values-from-a-field/m-p/1013384#M35622</link>
    <description>&lt;P&gt;I'd just have a set of if, elifs to transform your records into a new field using field calculator.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def changeText(input_field):
    if (input_field == 'Respiratory Care Therapy') :
        result = 'RC'
    elif (input_field == 'Nursing') :
        result = 'N'
    elif (input_field == 'Radiation Therapy'):
        result = 'RT'
        
    return result&lt;/LI-CODE&gt;&lt;P&gt;Then label by the new field.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ALabels.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/3104iA939673F49054FBD/image-size/large?v=v2&amp;amp;px=999" role="button" title="ALabels.png" alt="ALabels.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 02 Jan 2021 12:29:07 GMT</pubDate>
    <dc:creator>DavidPike</dc:creator>
    <dc:date>2021-01-02T12:29:07Z</dc:date>
    <item>
      <title>Need help with extracting values from a field......</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-extracting-values-from-a-field/m-p/1013362#M35617</link>
      <description>&lt;P&gt;Hey All,&lt;BR /&gt;So I have a coding problem that has been driving me insane.&amp;nbsp; I am working with a point feature showing geocoded student locations where the data table has a text field "Major Description". The Major Description field provides a textual&amp;nbsp; description for the students major (e.g., Respiratory Care Therapy, Nursing, Radiation Therapy, etc.).&amp;nbsp; What I ultimately want to do is to create a symbol set where the student location point symbol is replaced with the "initials" of the major.&amp;nbsp; In other words, rather than student majors having a color-coded point feature I want to have the students who are majoring in Nursing symbolized with an "N"; Respiratory Therapist would be symbolized with an "RT" and&amp;nbsp;Respiratory Care Therapy would be symbolized with an "RC" and so on.&amp;nbsp; This way, looking at a map showing, say 100 students,&amp;nbsp; in the School of Health Professions would be far more intuitive to see the spatial distribution of the majors by the lettering than by the associated point color.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried several different approaches all to no avail. Any thoughts, recommendations, suggestions (including beverage suggestions to ease this headache((:P))&amp;nbsp; would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jan 2021 22:28:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-extracting-values-from-a-field/m-p/1013362#M35617</guid>
      <dc:creator>Scott_Jeffrey</dc:creator>
      <dc:date>2021-01-01T22:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with extracting values from a field......</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-extracting-values-from-a-field/m-p/1013373#M35619</link>
      <description>&lt;P&gt;Use&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/reclassify-field.htm" target="_blank" rel="noopener"&gt;Reclassify Field (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;to add a new field with the reclassification to use for the symbology (manual method would seem appropriate).&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2021 00:46:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-extracting-values-from-a-field/m-p/1013373#M35619</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-01-02T00:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with extracting values from a field......</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-extracting-values-from-a-field/m-p/1013384#M35622</link>
      <description>&lt;P&gt;I'd just have a set of if, elifs to transform your records into a new field using field calculator.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def changeText(input_field):
    if (input_field == 'Respiratory Care Therapy') :
        result = 'RC'
    elif (input_field == 'Nursing') :
        result = 'N'
    elif (input_field == 'Radiation Therapy'):
        result = 'RT'
        
    return result&lt;/LI-CODE&gt;&lt;P&gt;Then label by the new field.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ALabels.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/3104iA939673F49054FBD/image-size/large?v=v2&amp;amp;px=999" role="button" title="ALabels.png" alt="ALabels.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2021 12:29:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-extracting-values-from-a-field/m-p/1013384#M35622</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-01-02T12:29:07Z</dc:date>
    </item>
  </channel>
</rss>

