<?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: Switch numbers in attribute field in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/switch-numbers-in-attribute-field/m-p/242802#M13793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yeah, i agree with that a table with 40K or more fields is crazy .. but i think that's the best way to find out the best (shortest path) route between 8 points -(calculating all the possible route and find the minimum distance among all)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have any advice on this, please let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by the way, thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Aug 2016 11:25:29 GMT</pubDate>
    <dc:creator>PilKwon</dc:creator>
    <dc:date>2016-08-16T11:25:29Z</dc:date>
    <item>
      <title>Switch numbers in attribute field</title>
      <link>https://community.esri.com/t5/data-management-questions/switch-numbers-in-attribute-field/m-p/242800#M13791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/216516_test.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to switch numbers between rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the thing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are 8! &lt;SPAN&gt;(40320)&amp;nbsp;&lt;/SPAN&gt;cases that i need to make arraying numbers in total&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g., (8*7*6*5*4*3*2*1) :&amp;nbsp;(0, 1, 2, 3, 4, 5, 6, 7) (1,0,2,3,4,5,6,7)(1,2,0,3,4,5,6,7) (1,2,3,0,4,5,6,7) .... (7,6,5,4,3,2,1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i am going to create 40320 fields and trying to put number in it.&lt;/P&gt;&lt;P&gt;I was thinking that i could use Random number generator but it returns duplicate number in rows and also it might have a chance to have duplicate fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any ways that i can do this easy way using field calculator's code block?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 10:36:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/switch-numbers-in-attribute-field/m-p/242800#M13791</guid>
      <dc:creator>PilKwon</dc:creator>
      <dc:date>2016-08-16T10:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Switch numbers in attribute field</title>
      <link>https://community.esri.com/t5/data-management-questions/switch-numbers-in-attribute-field/m-p/242801#M13792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you will not find any db system that will allow you to have a table with 40k attribute cols.&lt;/P&gt;&lt;P&gt;That's crazy.&lt;/P&gt;&lt;P&gt;If this is a bunch of arrays, then let's wait for &lt;A href="https://community.esri.com/people/Dan_Patterson"&gt;Dan_Patterson&lt;/A&gt; to come up with some more elegant solution using numpy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 10:45:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/switch-numbers-in-attribute-field/m-p/242801#M13792</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2016-08-16T10:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Switch numbers in attribute field</title>
      <link>https://community.esri.com/t5/data-management-questions/switch-numbers-in-attribute-field/m-p/242802#M13793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yeah, i agree with that a table with 40K or more fields is crazy .. but i think that's the best way to find out the best (shortest path) route between 8 points -(calculating all the possible route and find the minimum distance among all)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have any advice on this, please let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by the way, thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 11:25:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/switch-numbers-in-attribute-field/m-p/242802#M13793</guid>
      <dc:creator>PilKwon</dc:creator>
      <dc:date>2016-08-16T11:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Switch numbers in attribute field</title>
      <link>https://community.esri.com/t5/data-management-questions/switch-numbers-in-attribute-field/m-p/242803#M13794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; itertools &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; permutations &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; p
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; r &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; p&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="number token"&gt;6&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; r
&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&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;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&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;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&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;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&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;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&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;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; r &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; p&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;8&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;8&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="number token"&gt;40320&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I can help with the numbers, but you aren't going to get that number of fields.&lt;/P&gt;&lt;P&gt;What you want is a permutation.&amp;nbsp; two examples follow... I have printed one example out and just given the length of the 2nd. I strongly don't recommend that you print it out... at least on paper&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT fixed line 2 Nov 10 to read ..... range(3), 3)]&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:09:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/switch-numbers-in-attribute-field/m-p/242803#M13794</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T12:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Switch numbers in attribute field</title>
      <link>https://community.esri.com/t5/data-management-questions/switch-numbers-in-attribute-field/m-p/242804#M13795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOL printing them will crash my PC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot. I will try and see how it works on my ArcMap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 12:05:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/switch-numbers-in-attribute-field/m-p/242804#M13795</guid>
      <dc:creator>PilKwon</dc:creator>
      <dc:date>2016-08-16T12:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Switch numbers in attribute field</title>
      <link>https://community.esri.com/t5/data-management-questions/switch-numbers-in-attribute-field/m-p/242805#M13796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no solution, but maybe others have accomplished something similar to this idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to use an image (a raster field?) as the array? &amp;nbsp;This requires custom functions to store, read, and write array elements. &amp;nbsp;But, this would be a very compact way to store data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like I said, just an idea with no clue how to implement it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 14:03:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/switch-numbers-in-attribute-field/m-p/242805#M13796</guid>
      <dc:creator>BruceLang</dc:creator>
      <dc:date>2016-08-16T14:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Switch numbers in attribute field</title>
      <link>https://community.esri.com/t5/data-management-questions/switch-numbers-in-attribute-field/m-p/242806#M13797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your idea&lt;BR /&gt;I am applying Dan's solution to this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 14:05:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/switch-numbers-in-attribute-field/m-p/242806#M13797</guid>
      <dc:creator>PilKwon</dc:creator>
      <dc:date>2016-08-16T14:05:53Z</dc:date>
    </item>
  </channel>
</rss>

