<?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: ArcGIS Python API 2.0.1 from_layer() automatically converts null strings to &amp;quot;None&amp;quot; in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-python-api-2-0-1-from-layer-automatically/m-p/1225401#M48569</link>
    <description>&lt;P&gt;Is it &lt;EM&gt;literally&lt;/EM&gt; the string None? Keep in mind that a dataframe will display that for null string fields.&lt;/P&gt;&lt;P&gt;If you want to check, try &lt;STRONG&gt;df.loc[:['string_column1', 'string_column2'].isna() &lt;/STRONG&gt;to see which values are truly not there.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1666729289439.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54395i5B3378A517FDDBB9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1666729289439.png" alt="jcarlson_0-1666729289439.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2022 20:21:53 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2022-10-25T20:21:53Z</dc:date>
    <item>
      <title>ArcGIS Python API 2.0.1 from_layer() automatically converts null strings to "None"</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-python-api-2-0-1-from-layer-automatically/m-p/1225334#M48568</link>
      <description>&lt;P&gt;Since upgrading to version 2.0.1 I have noticed null string fields are automatically converted to the string "None".&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;df = pd.DataFrame.spatial.from_layer(&amp;lt;valid_layer&amp;gt;)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;And I get something like this:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="35.294117647058826%" height="15px"&gt;string_column1&lt;/TD&gt;&lt;TD width="29.66751918158568%" height="15px"&gt;string_column2&lt;/TD&gt;&lt;TD width="22.25063938618926%" height="15px"&gt;int_column&lt;/TD&gt;&lt;TD width="12.787723785166241%" height="15px"&gt;time_column&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="35.294117647058826%" height="15px"&gt;None&lt;/TD&gt;&lt;TD width="29.66751918158568%" height="15px"&gt;None&lt;/TD&gt;&lt;TD width="22.25063938618926%" height="15px"&gt;2&lt;/TD&gt;&lt;TD width="12.787723785166241%" height="15px"&gt;01:54.9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="35.294117647058826%" height="15px"&gt;None&lt;/TD&gt;&lt;TD width="29.66751918158568%" height="15px"&gt;None&lt;/TD&gt;&lt;TD width="22.25063938618926%" height="15px"&gt;1&lt;/TD&gt;&lt;TD width="12.787723785166241%" height="15px"&gt;23:17.4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="35.294117647058826%" height="15px"&gt;None&lt;/TD&gt;&lt;TD width="29.66751918158568%" height="15px"&gt;None&lt;/TD&gt;&lt;TD width="22.25063938618926%" height="15px"&gt;2&lt;/TD&gt;&lt;TD width="12.787723785166241%" height="15px"&gt;36:55.4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="35.294117647058826%" height="15px"&gt;None&lt;/TD&gt;&lt;TD width="29.66751918158568%" height="15px"&gt;None&lt;/TD&gt;&lt;TD width="22.25063938618926%" height="15px"&gt;1&lt;/TD&gt;&lt;TD width="12.787723785166241%" height="15px"&gt;38:04.4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I disable this behaviour?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 19:46:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-python-api-2-0-1-from-layer-automatically/m-p/1225334#M48568</guid>
      <dc:creator>JohnHuillery1</dc:creator>
      <dc:date>2022-10-25T19:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Python API 2.0.1 from_layer() automatically converts null strings to "None"</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-python-api-2-0-1-from-layer-automatically/m-p/1225401#M48569</link>
      <description>&lt;P&gt;Is it &lt;EM&gt;literally&lt;/EM&gt; the string None? Keep in mind that a dataframe will display that for null string fields.&lt;/P&gt;&lt;P&gt;If you want to check, try &lt;STRONG&gt;df.loc[:['string_column1', 'string_column2'].isna() &lt;/STRONG&gt;to see which values are truly not there.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1666729289439.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54395i5B3378A517FDDBB9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1666729289439.png" alt="jcarlson_0-1666729289439.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 20:21:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-python-api-2-0-1-from-layer-automatically/m-p/1225401#M48569</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-25T20:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Python API 2.0.1 from_layer() automatically converts null strings to "None"</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-python-api-2-0-1-from-layer-automatically/m-p/1225403#M48570</link>
      <description>&lt;P&gt;Oh, and to your question of "how do I disable" this, just call &lt;STRONG&gt;fillna('')&lt;/STRONG&gt; on those columns, and the nulls will be replaced with empty strings, or whatever else you decide to put in.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 20:24:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-python-api-2-0-1-from-layer-automatically/m-p/1225403#M48570</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-25T20:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Python API 2.0.1 from_layer() automatically converts null strings to "None"</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-python-api-2-0-1-from-layer-automatically/m-p/1225406#M48571</link>
      <description>&lt;P&gt;Yes it is literally the string "None"&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 20:26:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-python-api-2-0-1-from-layer-automatically/m-p/1225406#M48571</guid>
      <dc:creator>JohnHuillery1</dc:creator>
      <dc:date>2022-10-25T20:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Python API 2.0.1 from_layer() automatically converts null strings to "None"</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-python-api-2-0-1-from-layer-automatically/m-p/1225415#M48572</link>
      <description>&lt;P&gt;That's very strange. Even though &lt;STRONG&gt;from_layer&lt;/STRONG&gt; is really just doing &lt;STRONG&gt;FeatureLayer.query(as_df=True) &lt;/STRONG&gt;on the back end, I sometimes see inexplicable differences between the two.&lt;/P&gt;&lt;P&gt;Can you try &lt;STRONG&gt;valid_layer.query(as_df=True)&lt;/STRONG&gt; to see if it behaves the same way?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 20:33:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-python-api-2-0-1-from-layer-automatically/m-p/1225415#M48572</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-25T20:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Python API 2.0.1 from_layer() automatically converts null strings to "None"</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-python-api-2-0-1-from-layer-automatically/m-p/1225590#M48576</link>
      <description>&lt;P&gt;I've tried that as well and it gives me the same results.&lt;/P&gt;&lt;P&gt;I've reverted back to a previous version.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 12:38:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-python-api-2-0-1-from-layer-automatically/m-p/1225590#M48576</guid>
      <dc:creator>JohnHuillery1</dc:creator>
      <dc:date>2022-10-26T12:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Python API 2.0.1 from_layer() automatically converts null strings to "None"</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-python-api-2-0-1-from-layer-automatically/m-p/1225600#M48578</link>
      <description>&lt;P&gt;And v 2.0.0 doesn't do this? Have you tested it against other sources? I wonder if it's got to do with the underlying DB the data is being stored in. I'm on 2.0.1 and do not see this behavior.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 12:54:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-python-api-2-0-1-from-layer-automatically/m-p/1225600#M48578</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-26T12:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Python API 2.0.1 from_layer() automatically converts null strings to "None"</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-python-api-2-0-1-from-layer-automatically/m-p/1225605#M48579</link>
      <description>&lt;P&gt;v2.0.0 does not do this. I have tested it on other feature services - same result.&lt;/P&gt;&lt;P&gt;Can you replicate it when using the df.spatial.to_featureclass() or df.to_clipboard() methods?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 13:08:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-python-api-2-0-1-from-layer-automatically/m-p/1225605#M48579</guid>
      <dc:creator>JohnHuillery1</dc:creator>
      <dc:date>2022-10-26T13:08:12Z</dc:date>
    </item>
  </channel>
</rss>

