<?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: How can I pass along null (None) values through NumPyArrayToTable? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615835#M48046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes coerce forces non-dates to NaT, the mixed-type column comes from a project management system managed by non-dates folks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did some more testing and even after making all the dates into dummy dates (ex 1/1/1950) I still ran into a table creation error when using the to_date function within pandas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that I'll bring it in as a string and run more processes within arcgis, but I would have preferred to bring it straight in since none of the other fields need post-processing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2018 23:37:13 GMT</pubDate>
    <dc:creator>GIS_Spellblade</dc:creator>
    <dc:date>2018-11-13T23:37:13Z</dc:date>
    <item>
      <title>How can I pass along null (None) values through NumPyArrayToTable?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615826#M48037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am querying data from another Oracle database, doing some work on the data, geocoding it, then appending it to a feature class in our enterprise geodatabase. I use &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;ArcSDESQLExecute()&lt;/SPAN&gt;, then&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;NumPyArrayToTable()&lt;/SPAN&gt; to pass into&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;GeocodeAddresses_geocoding()&lt;/SPAN&gt;. However, during the&amp;nbsp;&lt;SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;NumPyArrayToTable()&lt;/SPAN&gt; process, null values always come through as a text string &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;'None'&lt;/SPAN&gt;. I tried changing &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;None&lt;/SPAN&gt; values to&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;numpy.NaN&lt;/SPAN&gt; but those just come through as a string &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;'nan'&lt;/SPAN&gt;. My datatypes for my numpy array fields are all string. How do you deal with null values with&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;NumPyArrayToTable()&lt;/SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2018 15:51:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615826#M48037</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2018-03-30T15:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pass along null (None) values through NumPyArrayToTable?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615827#M48038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;None is correct for strings... there is only one None.&lt;/P&gt;&lt;P&gt;NaN is correct for floating point numbers, integers have no concept of null so they are either assigned depending on the int type (see below)&lt;/P&gt;&lt;P&gt;NaT is for null times&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;iinfo&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;int8&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
iinfo&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;min&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;128&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; max&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;127&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; dtype&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;int8&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;iinfo&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;int16&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
iinfo&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;min&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;32768&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; max&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;32767&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; dtype&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;int16&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;iinfo&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;int32&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
iinfo&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;min&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2147483648&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; max&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2147483647&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; dtype&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;int32&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;iinfo&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;int64&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
Out&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;12&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; iinfo&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;min&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;9223372036854775808&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; max&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;9223372036854775807&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; dtype&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;int64&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:19:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615827#M48038</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T02:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pass along null (None) values through NumPyArrayToTable?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615828#M48039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Almost forgot the discussion about 'none'ness&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/blogs/dan_patterson/2016/11/03/before-i-forget-18-those-pesky-null-things"&gt;https://community.esri.com/blogs/dan_patterson/2016/11/03/before-i-forget-18-those-pesky-null-things&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and there is one on null geometry... but that can be left for later&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2018 18:11:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615828#M48039</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-03-30T18:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pass along null (None) values through NumPyArrayToTable?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615829#M48040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Dan, I don't quite follow. So if I have a structured NumPy array like this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"one"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"first"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"two"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; None&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"three"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"third"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;None&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"fourth"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and I specify the structured &lt;SPAN&gt;NumPy&amp;nbsp;&lt;/SPAN&gt;array field data types all as &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;'|S25'&lt;/SPAN&gt;, how can I ensure that the ArcGIS table that is created will have null values instead of a string &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;'None'&lt;/SPAN&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:19:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615829#M48040</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2021-12-12T02:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pass along null (None) values through NumPyArrayToTable?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615830#M48041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't... since the concept of &amp;lt;null&amp;gt; in the table is purely visual in a sense.&lt;/P&gt;&lt;P&gt;What I do when I have to bring stuff back into Pro or arcmap, then the first thing is to query for "None" the string... and do a field calculation to set them to &amp;lt;null&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;None is python is object, of which there is only one type and it has no real properties.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;None&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;__bool__&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;

None&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;__class__
&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;class&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'NoneType'&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;

None&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;__doc__&amp;nbsp; 
&lt;SPAN class="comment token"&gt;# ---- there is a blank line beneath‍‍‍‍‍‍‍&lt;/SPAN&gt;

None&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;__repr__&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'None'&lt;/SPAN&gt;

None&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;__str__&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'None'&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are unsure about None, you will notice that the array that is returned is an Object array and not an array of strings.&lt;/P&gt;&lt;P&gt;That is because None is NOT a subclass of string or anything else!&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;a &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;array&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"one"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"first"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"two"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; None&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"three"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"third"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;None&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"fourth"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

a&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dtype
dtype&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'O'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

a
array&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'one'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'first'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'two'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; None&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'three'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'third'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;None&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'fourth'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; dtype&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;object&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# ---- you will notice that None is not in quotes!!!&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;/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;P&gt;&lt;/P&gt;&lt;P&gt;Just remember... you have to keep track of what you are doing.&amp;nbsp; I personally hate the &amp;lt;null&amp;gt; thing since it removes some of the link between the user and their data.&amp;nbsp; &amp;lt;null&amp;gt;&amp;nbsp; should really be replaced with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt; ..... hey you !!!! .... &amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perhaps people will then not take None-ness for granted &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:19:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615830#M48041</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T02:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pass along null (None) values through NumPyArrayToTable?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615831#M48042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I also went looking at your other &lt;A _jive_internal="true" href="https://community.esri.com/blogs/dan_patterson/2016/09/09/numpy-snippets-6-nulls-nones-nans-more-aboout-nothing"&gt;NumPy snippets #6&lt;/A&gt; blog post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 15:32:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615831#M48042</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2018-04-02T15:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pass along null (None) values through NumPyArrayToTable?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615832#M48043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahhhh yes... which reminds me, I should do something with &lt;STRONG&gt;np.NaT&amp;nbsp;&lt;/STRONG&gt;for those that work with time &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 15:52:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615832#M48043</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-04-02T15:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pass along null (None) values through NumPyArrayToTable?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615833#M48044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Speaking of time, I'm trying to deal with NaT after consuming a google sheet into a pandas dataframe. Is this something that has to be handled after the table has been created? Or is there something that I can do before I pull it in?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to run something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import pandas&lt;BR /&gt;import numpy as np&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;google_sheet = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdocs.google.com%2Fspreadsheets%2Fd%2FGOOGLEUNIQUECODE%2Fexport%3Fformat%3Dcsv" rel="nofollow" target="_blank"&gt;https://docs.google.com/spreadsheets/d/GOOGLEUNIQUECODE/export?format=csv&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;#this is the standard way of making a Google Sheet a link-downloadable CSV after the unique key type: /export?format=csv&lt;BR /&gt;df = pandas.read_csv(google_sheet)&lt;BR /&gt;#read_csv can ingest a csv from a web link&lt;BR /&gt;#the following two lines are trying to correct a mixed-type column from the google sheet, because people like "TBD"&lt;BR /&gt;df['Project Start Date'] = pandas.to_datetime(df['Project Start Date'], errors='coerce')&lt;BR /&gt;df['Estimated Project Completion Date'] = pandas.to_datetime(df['Estimated Project Completion Date'], errors='coerce')&lt;/P&gt;&lt;P&gt;for i, row in enumerate(df.itertuples(),1):&lt;BR /&gt; print(row[1])&lt;BR /&gt;x = np.array(np.rec.fromrecords(df.values))&lt;BR /&gt;names = df.dtypes.index.tolist()&lt;BR /&gt;#names has to be names, I’m not sure why but it broke when I tried to rename it&lt;BR /&gt;x.dtype.names = tuple(names)&lt;BR /&gt;arcpy.da.NumPyArrayToTable(x, r'%scratchGDB%\testTable')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2018 22:11:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615833#M48044</guid>
      <dc:creator>GIS_Spellblade</dc:creator>
      <dc:date>2018-11-13T22:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pass along null (None) values through NumPyArrayToTable?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615834#M48045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mixing text in with datetimes in a spreadsheet is obviously an issue, so I presume that is what ... &lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 14px; 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;errors='coerce' is trying to do. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 14px; 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;What does it produce? and if it was formatted as string first, would converting to datetime be easier after?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2018 22:38:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615834#M48045</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-11-13T22:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pass along null (None) values through NumPyArrayToTable?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615835#M48046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes coerce forces non-dates to NaT, the mixed-type column comes from a project management system managed by non-dates folks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did some more testing and even after making all the dates into dummy dates (ex 1/1/1950) I still ran into a table creation error when using the to_date function within pandas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that I'll bring it in as a string and run more processes within arcgis, but I would have preferred to bring it straight in since none of the other fields need post-processing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2018 23:37:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615835#M48046</guid>
      <dc:creator>GIS_Spellblade</dc:creator>
      <dc:date>2018-11-13T23:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pass along null (None) values through NumPyArrayToTable?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615836#M48047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;probably a wise move, because of the multitude of 'standard' formats &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2018 00:49:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-pass-along-null-none-values-through/m-p/615836#M48047</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-11-14T00:49:32Z</dc:date>
    </item>
  </channel>
</rss>

