<?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: python in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/251996#M11112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; return "&amp;lt;NULL&amp;gt;" because it will not set a field to SQL NULL, it will set a field to a text string that says "&amp;lt;NULL&amp;gt;".&amp;nbsp; If you want to set a field to SQL NULL, you want to return None.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 22 Mar 2020 17:31:31 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2020-03-22T17:31:31Z</dc:date>
    <item>
      <title>python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/251994#M11110</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;&lt;/P&gt;&lt;P&gt;def Reclass(arg):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if arg in ["222", "333"]:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return "&amp;lt;Null&amp;gt;"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return arg&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/485910_b.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/485909_a.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #fdfdfd; color: #000000; font-family: Noto Sans,Noto Sans JP,Noto Sans KR,Helvetica,Microsoft YaHei,Apple SD Gothic Neo,Malgun Gothic,맑은 고딕,Dotum,돋움,sans-serif; font-size: 30px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;I want the results as shown below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #fdfdfd; color: #000000; font-family: Noto Sans,Noto Sans JP,Noto Sans KR,Helvetica,Microsoft YaHei,Apple SD Gothic Neo,Malgun Gothic,맑은 고딕,Dotum,돋움,sans-serif; font-size: 30px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;IMG alt="" class="jive-emoji jive-image image-3 j-img-original" src="https://community.esri.com/legacyfs/online/485911_r.JPG" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Mar 2020 10:38:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/251994#M11110</guid>
      <dc:creator>KalSsin</dc:creator>
      <dc:date>2020-03-22T10:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/251995#M11111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nearly there, but you need to pass in 2 arguments.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;#prelogic codeblock&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Reclass&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arg1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; arg2&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; arg1 &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"222"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"333"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"&amp;lt;Null&amp;gt;"&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; arg2


&lt;SPAN class="comment token"&gt;#code&lt;/SPAN&gt;

Reclass&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;!NAME!&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; !PNAME!&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:29:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/251995#M11111</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-12-11T12:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/251996#M11112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; return "&amp;lt;NULL&amp;gt;" because it will not set a field to SQL NULL, it will set a field to a text string that says "&amp;lt;NULL&amp;gt;".&amp;nbsp; If you want to set a field to SQL NULL, you want to return None.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Mar 2020 17:31:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/251996#M11112</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-03-22T17:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/251997#M11113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much~~~~~~&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;#prelogic codeblock&lt;/DIV&gt;&lt;DIV&gt;def Reclass(arg1, arg2):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if arg1 in ["222", "333"]:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return None&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return arg2&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;#code&lt;/DIV&gt;&lt;DIV&gt;Reclass(!NAME!, !PNAME!)&lt;/DIV&gt;&lt;P&gt;&lt;IMG __jive_id="485924" alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/485924_22.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Mar 2020 23:15:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/251997#M11113</guid>
      <dc:creator>KalSsin</dc:creator>
      <dc:date>2020-03-22T23:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/251998#M11114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Mar 2020 23:16:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/251998#M11114</guid>
      <dc:creator>KalSsin</dc:creator>
      <dc:date>2020-03-22T23:16:20Z</dc:date>
    </item>
  </channel>
</rss>

