<?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 Dictionary that can ignore a field in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-dictionary-that-can-ignore-a-field/m-p/640740#M49928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I am using ArcMap 10.3.1.&lt;BR /&gt;I have used a double concatenation string in python to catch 99.9% of my lookups, first using two fields against the lookup (for a general lookup), and then a 3 field lookup for specific lookups in the table.&lt;/P&gt;&lt;P&gt;In the lookup table I have a full look up reference (Utility-Type-Material-Diameter --&amp;gt; Water-Pressure Main-PVC-100) but I also have partial references (&lt;SPAN&gt;Water-Pressure Main-PVC-), so using a python dictionary to input a unit rate I only use the Type and Material, then I use Type, Material, and Diameter. After the rates are in I multiply against the length. Its not a perfect system but it allows for any diameters not found in the lookup table per type and material to be given a rate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The attached text file using python&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Mar 2017 21:40:05 GMT</pubDate>
    <dc:creator>DougMerrick</dc:creator>
    <dc:date>2017-03-22T21:40:05Z</dc:date>
    <item>
      <title>Python Dictionary that can ignore a field</title>
      <link>https://community.esri.com/t5/python-questions/python-dictionary-that-can-ignore-a-field/m-p/640738#M49926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have adapted a python dictionary from &lt;A _jive_internal="true" href="https://community.esri.com/blogs/richard_fairhurst/2014/11/08/turbo-charging-data-manipulation-with-python-cursors-and-dictionaries"&gt;here&lt;/A&gt;&amp;nbsp;to join and calculate a field between a feature class and a lookup table while concatenating on the fly.&lt;/P&gt;&lt;P&gt;Is it possible to ignore a field while concatenating and still calculate a value in?&lt;/P&gt;&lt;P&gt;ie. I am concatenating on the fly using a python dictionary using field [Main_Type], [Material], and [Diameter] in my feature class. In my lookup table that becomes a python dictionary I have the same fields but for each Main_Type and Diameter I leave a blank Diameter field with a lookup cost. I want to concatenate/field calculate the cost from the lookup to the feature class and if the Diameter field does not match, then match based on the Main_Type and Material only.&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 23:09:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-dictionary-that-can-ignore-a-field/m-p/640738#M49926</guid>
      <dc:creator>DougMerrick</dc:creator>
      <dc:date>2017-03-21T23:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Python Dictionary that can ignore a field</title>
      <link>https://community.esri.com/t5/python-questions/python-dictionary-that-can-ignore-a-field/m-p/640739#M49927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;"&lt;EM&gt;Is it possible to ignore a field while concatenating and still calculate a value in?&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Well in python code, just about anything is possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;But a look at what you have so far, Arc version etc might help someone give more specific advice.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 06:47:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-dictionary-that-can-ignore-a-field/m-p/640739#M49927</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2017-03-22T06:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Python Dictionary that can ignore a field</title>
      <link>https://community.esri.com/t5/python-questions/python-dictionary-that-can-ignore-a-field/m-p/640740#M49928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I am using ArcMap 10.3.1.&lt;BR /&gt;I have used a double concatenation string in python to catch 99.9% of my lookups, first using two fields against the lookup (for a general lookup), and then a 3 field lookup for specific lookups in the table.&lt;/P&gt;&lt;P&gt;In the lookup table I have a full look up reference (Utility-Type-Material-Diameter --&amp;gt; Water-Pressure Main-PVC-100) but I also have partial references (&lt;SPAN&gt;Water-Pressure Main-PVC-), so using a python dictionary to input a unit rate I only use the Type and Material, then I use Type, Material, and Diameter. After the rates are in I multiply against the length. Its not a perfect system but it allows for any diameters not found in the lookup table per type and material to be given a rate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The attached text file using python&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 21:40:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-dictionary-that-can-ignore-a-field/m-p/640740#M49928</guid>
      <dc:creator>DougMerrick</dc:creator>
      <dc:date>2017-03-22T21:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Python Dictionary that can ignore a field</title>
      <link>https://community.esri.com/t5/python-questions/python-dictionary-that-can-ignore-a-field/m-p/640741#M49929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please post your Python code in the code syntax highlighter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/343675_pastedImage_1.png" style="width: 620px; height: 258px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 19:19:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-dictionary-that-can-ignore-a-field/m-p/640741#M49929</guid>
      <dc:creator>MitchHolley1</dc:creator>
      <dc:date>2017-03-23T19:19:47Z</dc:date>
    </item>
  </channel>
</rss>

