<?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: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly. in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688756#M39022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are issues with nulls in all languages even my beloved vb and also with both the Oracle and MS SQL server -- so Python following the SQL standard is not 100% true either because each deals with nullness differently.&amp;nbsp; So it is not really any specific language problem.&amp;nbsp; My issue with Python's and Null is mostly personal.&amp;nbsp; Python reminds me of the Perl scripting language (Which I really hated).&amp;nbsp; I spend more time with python trying to figure out why an apparent record that both MSSQL ,ACCESS and EXCEL says its null but fails when testing in Python.&amp;nbsp; In the end I use VB or other language scripts for null testing because I find the results both consistent and repeatable across time.&amp;nbsp; VB, MS access, MS SQL treat Nulls slightly differently but in those cases I found I could handle the differences with little to no effort.&amp;nbsp; VB distinguishes between space and nothing.&amp;nbsp; Whereas MS Access does not except when you use the built in function as well as MS SQL.&amp;nbsp; Oracle has more of a java/javascript approach to Null.&amp;nbsp; But Python is very indirect and obscure when dealing with null within the language context (Probably makes Python much more flexible in the long run and can easily test all variants of nullness).&amp;nbsp; I am probably not yet knowledgeable in Python to adequately determine which of the many variants I should test for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is with the definition of what we consider is NULL.&amp;nbsp; In my definition an empty string is not null, however nothing and null are same.&amp;nbsp; Some other engineers I know disagree with my definition stating that nothing is also not null ... to them NULL is the absence of Nothing (that I cannot put my head around).&amp;nbsp; Other folks will say that the &amp;lt; 31 ASCII Codes are nothing because they are artifacts from buffered cut and paste operation.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ideal language tells me if something is null adhering to my expectation of nullness consistently. Python does not do this yet for me.&amp;nbsp; My custom Python isNull function is constantly growing/being modified ... trying to capture and test for my definition of a null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did a little isNull test using different Languages and DB's for a test record from sqlserver that had a test field containing an ascii &amp;lt;NUL&amp;gt; and &amp;lt;TAB&amp;gt; char&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vb6 - isNull&amp;nbsp; -- False&lt;/P&gt;&lt;P&gt;vb.net isNull -- False / DB Context isNull -- true (go figure)&lt;/P&gt;&lt;P&gt;python (test for none) -- False&lt;/P&gt;&lt;P&gt;MS Access -- True&lt;/P&gt;&lt;P&gt;MSSQL -- True&lt;/P&gt;&lt;P&gt;Oracle -- False&lt;/P&gt;&lt;P&gt;c # -- False and DB Context isNull -- true (same as VB.net)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 May 2016 18:54:13 GMT</pubDate>
    <dc:creator>TedKowal</dc:creator>
    <dc:date>2016-05-05T18:54:13Z</dc:date>
    <item>
      <title>I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688738#M39004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If field X &amp;lt;&amp;gt; Null&lt;/P&gt;&lt;P&gt;then field calculate field Y with field X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(using 10.4)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 13:30:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688738#M39004</guid>
      <dc:creator>KevinMilton</dc:creator>
      <dc:date>2016-05-04T13:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688739#M39005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;since you are learning, nulls of any sort are treated as boolean False&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; a = ""
&amp;gt;&amp;gt;&amp;gt; if a:
...&amp;nbsp; print(a)
... else:
...&amp;nbsp; print("null string")
... 
null string
&amp;gt;&amp;gt;&amp;gt; a = "hello"
&amp;gt;&amp;gt;&amp;gt; if a:
...&amp;nbsp; print(a)
... else:
...&amp;nbsp; print("null string")
...
hello
&amp;gt;&amp;gt;&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:59:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688739#M39005</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T04:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688740#M39006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try searching GeoNet for an existing answer? I am quite sure this type of conditional field calculation has been covered a time or two.&amp;nbsp; That said, see if the following works for you (apply to Field Y using Python parser):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;!field_x! if !field_x! else !field_y!&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1462369804978558" data-renderedposition="86_8_1203_16" jivemacro_uid="_1462369804978558"&gt;&lt;P&gt;!field_x! if !field_x! is not None else !field_y!&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;Although my original code would have worked for most data types, it could have given incorrect answers with string fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Python doesn't have a data type called NULL/Null/null.&amp;nbsp; The Python &lt;A href="https://docs.python.org/2/library/stdtypes.html"&gt;Built-in Types &lt;/A&gt;documentation states for the null object, "There is exactly one null object, named None (a built-in name)."&amp;nbsp; If you are used to working with NULL in databases and SQL; be careful, &lt;SPAN style="color: #303030; font-family: courier new,courier;"&gt;None &lt;/SPAN&gt;in Python doesn't behave exactly the same as NULL even though &lt;SPAN style="font-family: courier new,courier;"&gt;None&lt;/SPAN&gt; is referred to as "the null object" in some documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Python there are several falsy values, i.e., values that are not false but evaluate to false in a Boolean context.&amp;nbsp; Some common examples are &lt;SPAN style="font-family: courier new,courier;"&gt;None&lt;/SPAN&gt; (the NoneType),&lt;SPAN style="font-family: courier new,courier;"&gt; ""&lt;/SPAN&gt; (empty string), &lt;SPAN style="font-family: courier new,courier;"&gt;[]&lt;/SPAN&gt; empty list, &lt;SPAN style="font-family: courier new,courier;"&gt;()&lt;/SPAN&gt; (empty tuple), and &lt;SPAN style="font-family: courier new,courier;"&gt;0&lt;/SPAN&gt; (the number zero).&amp;nbsp; When using the Python parser with the Field Calculator or cursors with ArcPy, NULLs need to be converted, and Esri has chosen to convert them to &lt;SPAN style="font-family: courier new,courier;"&gt;None&lt;/SPAN&gt;, which is understandable given the built-in data types available with Python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue with my original code is that an empty string would have compared as &lt;SPAN style="font-family: courier new,courier;"&gt;False&lt;/SPAN&gt;, the same as &lt;SPAN style="font-family: courier new,courier;"&gt;None&lt;/SPAN&gt;, but an empty string is not NULL.&amp;nbsp; Changing the code to explicitly check for &lt;SPAN style="font-family: courier new,courier;"&gt;None&lt;/SPAN&gt; solves this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 13:44:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688740#M39006</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-05-04T13:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688741#M39007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you could do it using field calculator of attribute table, just follow these steps&lt;/P&gt;&lt;P&gt;1. Select by Attributes with following expression:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Y" IS NOT NULL&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Once selected, I would use Field Calculator on field "X", with the following expression&lt;/P&gt;&lt;P&gt;"Y"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 14:48:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688741#M39007</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2016-05-04T14:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688742#M39008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been working the last year converting to Python from VBA.&amp;nbsp; I still have issues with Python's handling of NULLS!&amp;nbsp; From my perspective results are &lt;SPAN style="text-decoration: underline;"&gt;almost&lt;/SPAN&gt; always inconsistent; so my level of trust using Python to handle null is very low.&amp;nbsp; I almost always use vbscript isnull() function to check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I learned something new thanks to Dan, I did not realize that nulls are treated as "false".&amp;nbsp; Coming from a VB background nulls are neither True or False.... this concept may help me with my own inconsistencies with Pythons and Nulls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VB&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if&amp;nbsp; IsNull(FieldX) then
&amp;nbsp; FieldY = 'Calculation on FieldX being Null'
else
&amp;nbsp; FieldY = 'Calculation when FieldX is not Null'
end if&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing to check or to make sure that your tests includes Blanks,embedded tabs or other control character (see a lot of this when cut and pasting from excel)... these are not nulls although they act and appear to be nulls.&amp;nbsp; These include all characters with ASCII values between 0 and 31.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made some tests using Python's of treating Null values as false ....&amp;nbsp;&amp;nbsp; works great if the data is clean... however on my "dirty tests"&amp;nbsp; (real life cut/paste from external programs) I would still have to strip all embedded control characters before the Python script would work whereas the vbscript had no issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS... added later...&amp;nbsp; This exercise has shown me that I have been lazy relying on VB to test for nulls... my data is not as clean as I thought it was....&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:59:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688742#M39008</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2021-12-12T04:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688743#M39009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ArcGIS, NULL in a data table is converted to &lt;SPAN style="font-family: courier new,courier;"&gt;None&lt;/SPAN&gt; in Python.&amp;nbsp; The equivalent of &lt;SPAN style="font-family: courier new,courier;"&gt;IsNull&lt;/SPAN&gt; in VBA is &lt;SPAN style="font-family: courier new,courier;"&gt;is None&lt;/SPAN&gt; in Python.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if FieldX is None:
&amp;nbsp; FieldY = # Calculation on FieldX being Null
else:
&amp;nbsp; FieldY = # Calculation when FieldX is not Null&lt;/PRE&gt;&lt;P&gt; (Note:&amp;nbsp; Not fully functional Field Calculator code, just rough out concept.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:59:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688743#M39009</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-12T04:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688744#M39010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Field calculate field X with any value that is not null from field Y.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;For answers to more Python questions, I recommend searching in &lt;A href="https://community.esri.com/space/2145" target="_blank"&gt;Python&lt;/A&gt;&amp;nbsp; and &lt;A href="https://community.esri.com/group/1519" target="_blank"&gt;python snippets&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;In Python, zero and Null, and "" are false, as you describe above (repeating what you said, but hard to find things up-thread sometimes, sorry).&amp;nbsp; So, Joshua, I think you get a cookie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my solution: often for this problem you want to put &lt;EM&gt;something&lt;/EM&gt; in there to indicate a null value was there in Y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calculate Field&lt;/P&gt;&lt;P&gt;Field: &lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;X&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;CopyNonNull(!Y!)&amp;nbsp; # Null Y values are assigned None (Null, sort of...)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;or&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;CopyNonNull(!Y!, -9999)&amp;nbsp; # Null Y values are assigned -9999&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Parser:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;PYTHON_9.3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Code block:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def CopyNonNull(val, missing_val=None):
&amp;nbsp; if val is None:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return missing_val
&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return val&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:59:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688744#M39010</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-12T04:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688745#M39011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the nullness summary (Curtis, in the &lt;A href="https://community.esri.com/group/1732" target="_blank"&gt;NumPy Repository&lt;/A&gt;​)&lt;/P&gt;&lt;P&gt;Here is the output: (formatting issues today)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Object.... Empty... Type......
[]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; True&amp;nbsp;&amp;nbsp;&amp;nbsp; list&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
[1]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; False&amp;nbsp;&amp;nbsp;&amp;nbsp; list&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; True&amp;nbsp;&amp;nbsp;&amp;nbsp; tuple&amp;nbsp;&amp;nbsp; 
1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; False&amp;nbsp;&amp;nbsp;&amp;nbsp; int&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
{}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; True&amp;nbsp;&amp;nbsp;&amp;nbsp; dict&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
{1: 'one'} False&amp;nbsp;&amp;nbsp;&amp;nbsp; dict&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
''&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; True&amp;nbsp;&amp;nbsp;&amp;nbsp; str&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
'1'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; False&amp;nbsp;&amp;nbsp;&amp;nbsp; str&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
None&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; True&amp;nbsp;&amp;nbsp;&amp;nbsp; NoneType 
True&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; False&amp;nbsp;&amp;nbsp;&amp;nbsp; bool&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; False&amp;nbsp;&amp;nbsp;&amp;nbsp; int&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
False&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; True&amp;nbsp;&amp;nbsp;&amp;nbsp; bool&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; True&amp;nbsp;&amp;nbsp;&amp;nbsp; int&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
Object................... Empty... Type...... 
Counter()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; True&amp;nbsp;&amp;nbsp;&amp;nbsp; Counter&amp;nbsp; 
Counter({0: 1})&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; False&amp;nbsp;&amp;nbsp;&amp;nbsp; Counter&amp;nbsp; 
OrderedDict()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; True&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderedDict
OrderedDict([(1, '1')])&amp;nbsp; False&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderedDict
array([], dtype=float64)&amp;nbsp; True&amp;nbsp;&amp;nbsp;&amp;nbsp; ndarray&amp;nbsp; 
array(1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; False&amp;nbsp;&amp;nbsp;&amp;nbsp; ndarray&amp;nbsp; &lt;/PRE&gt;&lt;P&gt;There are other examples dealing with geometry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:59:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688745#M39011</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T04:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688746#M39012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although Python &lt;A href="https://docs.python.org/2/reference/expressions.html#conditional-expressions" rel="nofollow noopener noreferrer" target="_blank"&gt;Conditional Expressions &lt;/A&gt;have their limits, they can be used in this and similar cases to avoid using a code block:&lt;/P&gt;&lt;P&gt;Calculate Field&lt;/P&gt;&lt;P&gt;Field: X&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;None if !Y! is None else !Y!&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Null Y values are assigned back to Null (Python None will get converted back to Null)&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;-9999 if !Y! is None else !Y!&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Null Y values are assigned -9999
!Y! if !Y! is not None else -9999&amp;nbsp;&amp;nbsp;&amp;nbsp; # Null Y values are assigned -9999.&amp;nbsp; Same as above just changes order of conditions.&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:59:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688746#M39012</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-12T04:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688747#M39013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In pure GIS tables I do not doubt your correctness about ESRI Nulls equating to None.&amp;nbsp; However, in My real world, as a state authority, we are beggars of data and in many cases have little or no say in the formatting or the QA process the data we receive undergoes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using my data, None is useless for testing for nullness ( hit or miss).&amp;nbsp; The best pythonic approach I have used with my data is using the old fashion trim and concatenation approach to strip out all the Ascii codes 31 or less and final test for a single space or as many here indicated, assign a comparison number or string to represent nullness for the down and dirty.&amp;nbsp; My clean approach, when I have time is to validate and correct the data before it gets into GIS (Then None and Dan's boolean approach works 100%).&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still state that Python has issues with Nulls.&amp;nbsp;&amp;nbsp; It quacks like a duck, looks like a duck and feels like a duck -- But it is not a duck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 15:56:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688747#M39013</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2016-05-05T15:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688748#M39014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ted... still not ready to move on to 'not a number ' &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt; until you can accept nulls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; a = np.NaN
&amp;gt;&amp;gt;&amp;gt; b = np.NaN
&amp;gt;&amp;gt;&amp;gt; a == b
False&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:59:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688748#M39014</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T04:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688749#M39015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I see it different, i.e., it is a data issue and not a Python issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have worked for government in a variety of positions ranging from planning to information management and now information technology.&amp;nbsp; I have been on both the producing and consuming side of data, including data problems.&amp;nbsp; I agree that messy data doesn't fit cleaning into code, regardless of the language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardless of the language (Python, SQL , etc...), most of what you describe is neither Null or None.&amp;nbsp; An empty string might be falsy, but it certainly isn't Null.&amp;nbsp; The same holds true for strings with ASCII codes 31 or less.&amp;nbsp; I am interested in how you would handle these types of situations in other programming languages because I don't really see how this is specifically a Python issue, regardless of whether one wants to argue None is Null or not Null exactly. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 17:18:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688749#M39015</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-05-05T17:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688750#M39016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan you just made my day! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a LRS shop and NaN will be an issue when Python incorporates dynamic seg and measures.... nice that I have that to look forward to.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankfully I wrote all my LRS code in VB.Net/ESRI SDK&amp;nbsp; which will be around for awhile.&amp;nbsp; I have read a few interesting papers about the possible redesign of VB, on which will incorporate and built around the HTML5 engine.&amp;nbsp; If this comes to be, it will be a game changer and breath new life into vb script again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 17:33:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688750#M39016</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2016-05-05T17:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688751#M39017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I completely agree with Joshua that only real Null values should be found by Python, since only real Null values will be found by SQL if I write an expression that uses IS NULL for any of the databases I use.&amp;nbsp; Whitespace and control characters are not Null and will not be selected using IS NULL with standard implementations of SQL.&amp;nbsp; Python follows the SQL standard.&amp;nbsp; Access queries might return results that are more similar to the VB implementation, but Access is in no way a reliable reference for established database "standards" recognized by professionals.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 17:42:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688751#M39017</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2016-05-05T17:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688752#M39018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And to conclude.&lt;/P&gt;&lt;P&gt;There is only one object in python that is None, it is&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; type(None)&lt;/P&gt;&lt;P&gt;&amp;lt;type 'NoneType'&amp;gt;&lt;/P&gt;&lt;P&gt;There are, however many null objects, in the mathematical sense (ie lists, sets, dictionaries, collections any container)&lt;/P&gt;&lt;P&gt;Then there are objects that are not, but their are not equal in their none-ness (ie np.NaN)&lt;/P&gt;&lt;P&gt;Their truth equality in testing is another issue...&amp;nbsp; the idea that &lt;STRONG&gt;None&lt;/STRONG&gt; of this matters is &lt;STRONG&gt;False&lt;/STRONG&gt; and this is &lt;STRONG&gt;True&lt;/STRONG&gt; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/confused.png" /&gt; &lt;/P&gt;&lt;P&gt;And I again, will leave geometry out of this... of which I have posted several times before &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 17:52:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688752#M39018</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-05-05T17:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688753#M39019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kevin.... we apologize if None of this makes sense.. or you just don't care &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 17:54:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688753#M39019</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-05-05T17:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688754#M39020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only thing I might add is this leverages Falsy behavior in python. &lt;A href="https://docs.python.org/2.4/lib/truth.html" title="https://docs.python.org/2.4/lib/truth.html"&gt;2.3.1 Truth Value Testing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Something to keep in mind is that 0 can also be Falsy along with a few other values (empty strings etc). &lt;BR /&gt;Using&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if value: (falsy)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is None&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is not None&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or even&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;isintance() built in is what I see over and over again. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 18:32:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688754#M39020</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2016-05-05T18:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688755#M39021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes confusing isn't it... you have to know what an object or what it&amp;nbsp; belongs to... a common mistake in numpy&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; a = np.NaN&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; isinstance(a,np.NaN)&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;TypeError: isinstance() arg 2 must be a class, type, or tuple of classes and types&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; type(np.NaN)&lt;/P&gt;&lt;P&gt;&amp;lt;type 'float'&amp;gt;&lt;/P&gt;&lt;P&gt;because you can't use zero... and the list goes on&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 18:38:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688755#M39021</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-05-05T18:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688756#M39022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are issues with nulls in all languages even my beloved vb and also with both the Oracle and MS SQL server -- so Python following the SQL standard is not 100% true either because each deals with nullness differently.&amp;nbsp; So it is not really any specific language problem.&amp;nbsp; My issue with Python's and Null is mostly personal.&amp;nbsp; Python reminds me of the Perl scripting language (Which I really hated).&amp;nbsp; I spend more time with python trying to figure out why an apparent record that both MSSQL ,ACCESS and EXCEL says its null but fails when testing in Python.&amp;nbsp; In the end I use VB or other language scripts for null testing because I find the results both consistent and repeatable across time.&amp;nbsp; VB, MS access, MS SQL treat Nulls slightly differently but in those cases I found I could handle the differences with little to no effort.&amp;nbsp; VB distinguishes between space and nothing.&amp;nbsp; Whereas MS Access does not except when you use the built in function as well as MS SQL.&amp;nbsp; Oracle has more of a java/javascript approach to Null.&amp;nbsp; But Python is very indirect and obscure when dealing with null within the language context (Probably makes Python much more flexible in the long run and can easily test all variants of nullness).&amp;nbsp; I am probably not yet knowledgeable in Python to adequately determine which of the many variants I should test for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is with the definition of what we consider is NULL.&amp;nbsp; In my definition an empty string is not null, however nothing and null are same.&amp;nbsp; Some other engineers I know disagree with my definition stating that nothing is also not null ... to them NULL is the absence of Nothing (that I cannot put my head around).&amp;nbsp; Other folks will say that the &amp;lt; 31 ASCII Codes are nothing because they are artifacts from buffered cut and paste operation.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ideal language tells me if something is null adhering to my expectation of nullness consistently. Python does not do this yet for me.&amp;nbsp; My custom Python isNull function is constantly growing/being modified ... trying to capture and test for my definition of a null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did a little isNull test using different Languages and DB's for a test record from sqlserver that had a test field containing an ascii &amp;lt;NUL&amp;gt; and &amp;lt;TAB&amp;gt; char&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vb6 - isNull&amp;nbsp; -- False&lt;/P&gt;&lt;P&gt;vb.net isNull -- False / DB Context isNull -- true (go figure)&lt;/P&gt;&lt;P&gt;python (test for none) -- False&lt;/P&gt;&lt;P&gt;MS Access -- True&lt;/P&gt;&lt;P&gt;MSSQL -- True&lt;/P&gt;&lt;P&gt;Oracle -- False&lt;/P&gt;&lt;P&gt;c # -- False and DB Context isNull -- true (same as VB.net)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 18:54:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688756#M39022</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2016-05-05T18:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to calculate a field where i want to exclude any null values. For example. Field calulate field X with any value that is not null from field Y. I have been messing with python, but just can not seem to get this to run properly.</title>
      <link>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688757#M39023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to know about np.NaNs for that. I have been running into issues with that at work recently. NP methods for scrubbing NaNs seem best, but I have found masked arrays to be annoying in practice. Pandas seems to handle it a little better on the surface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any good articles on np.NaN types specifically Dan? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 19:13:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/i-am-trying-to-calculate-a-field-where-i-want-to/m-p/688757#M39023</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2016-05-05T19:13:59Z</dc:date>
    </item>
  </channel>
</rss>

