<?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: Using pandas in ArcGIS pro in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/using-pandas-in-arcgis-pro/m-p/747215#M32704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;From Pro script window,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I typed "import pandas as pd",then occurred the error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I checked "import pandas as pd" in many way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try test.py script below.(execute command:propy.dat test.py)&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import arcpy&lt;BR /&gt;import pandas as pd&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;ERROR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT,&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import pandas as pd&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;import arcpy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;SUCCESS!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why import pandas after import arcpy???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Oct 2017 10:26:45 GMT</pubDate>
    <dc:creator>YasunariMorita</dc:creator>
    <dc:date>2017-10-23T10:26:45Z</dc:date>
    <item>
      <title>Using pandas in ArcGIS pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-pandas-in-arcgis-pro/m-p/747213#M32702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to deal with table data by using pandas from ArcGIS pro.&lt;/P&gt;&lt;P&gt;But, I have&amp;nbsp;mysterious error below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Runtime error &lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\__init__.py", line 25, in &amp;lt;module&amp;gt;&lt;BR /&gt; from pandas import hashtable, tslib, lib&lt;BR /&gt; File "pandas\tslib.pyx", line 5421, in init pandas.tslib (pandas\tslib.c:114996)&lt;BR /&gt; File "pandas\tslib.pyx", line 5338, in pandas.tslib.TimeRE.__init__ (pandas\tslib.c:85126)&lt;BR /&gt; File "pandas\tslib.pyx", line 5219, in pandas.tslib.LocaleTime.__init__ (pandas\tslib.c:82425)&lt;BR /&gt; File "pandas\tslib.pyx", line 5239, in pandas.tslib.LocaleTime.__calc_weekday (pandas\tslib.c:82859)&lt;BR /&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\calendar.py", line 79, in __getitem__&lt;BR /&gt; return funcs(self.format)&lt;BR /&gt;ValueError: embedded null byte&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"null byte" probably means that some paths or file names include \0,but where?&lt;/P&gt;&lt;P&gt;And, this error happens only in case of python3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any advice would be helpful.&lt;BR /&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 08:14:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-pandas-in-arcgis-pro/m-p/747213#M32702</guid>
      <dc:creator>YasunariMorita</dc:creator>
      <dc:date>2017-10-23T08:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using pandas in ArcGIS pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-pandas-in-arcgis-pro/m-p/747214#M32703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the nature of the table?&amp;nbsp; (type, field names, data types etc)&lt;/P&gt;&lt;P&gt;How are you accessing Pandas? (Pro script window, another IDE etc, a tool from within arctoolbox in Pro?)&lt;/P&gt;&lt;P&gt;can you convert/load the table within Pro without issue?&lt;/P&gt;&lt;P&gt;Any other useful details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 09:49:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-pandas-in-arcgis-pro/m-p/747214#M32703</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-23T09:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using pandas in ArcGIS pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-pandas-in-arcgis-pro/m-p/747215#M32704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;From Pro script window,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I typed "import pandas as pd",then occurred the error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I checked "import pandas as pd" in many way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try test.py script below.(execute command:propy.dat test.py)&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import arcpy&lt;BR /&gt;import pandas as pd&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;ERROR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT,&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import pandas as pd&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;import arcpy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;SUCCESS!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why import pandas after import arcpy???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 10:26:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-pandas-in-arcgis-pro/m-p/747215#M32704</guid>
      <dc:creator>YasunariMorita</dc:creator>
      <dc:date>2017-10-23T10:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using pandas in ArcGIS pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-pandas-in-arcgis-pro/m-p/747216#M32705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect it might have something to do with the newer 'arcgis' module which uses pandas as a shell for the SpatialDataFrame.&amp;nbsp; If you examine the menu tree in windows, pandas is indeed installed.&amp;nbsp; Hence the reason I was asking where you are running python from.&amp;nbsp; When using Pro, you should be using python and everything from the required anaconda package distribution. &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 10:30:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-pandas-in-arcgis-pro/m-p/747216#M32705</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-23T10:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using pandas in ArcGIS pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-pandas-in-arcgis-pro/m-p/747217#M32706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yasunari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you share what version of ArcGIS Pro you're using, and what version of Windows? Could you also run this from the Python prompt in Pro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; locale&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; time
local&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setlocale&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;local&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LC_ALL&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'ja'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
time&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;strftime&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'%a'&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that produce the same error?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:46:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-pandas-in-arcgis-pro/m-p/747217#M32706</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2021-12-12T07:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using pandas in ArcGIS pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-pandas-in-arcgis-pro/m-p/747218#M32707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,Shaun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;version of ArcGIS Pro:1.4.1&lt;/P&gt;&lt;P&gt;version of Windows:windows 7 professional SP1&amp;nbsp;(64bit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran your code, and it porduced the same error!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import locale, time&lt;BR /&gt;locale.setlocale(locale.LC_ALL, 'ja')&lt;BR /&gt;'ja'&lt;BR /&gt;time.strftime('%a')&lt;BR /&gt;Runtime error &lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;ValueError: embedded null byte&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish this was helpful for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 02:39:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-pandas-in-arcgis-pro/m-p/747218#M32707</guid>
      <dc:creator>YasunariMorita</dc:creator>
      <dc:date>2017-10-25T02:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using pandas in ArcGIS pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-pandas-in-arcgis-pro/m-p/747219#M32708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah yes, thanks. Yes, this is a problem with the Windows C Runtime (UCRT) that is shipped with ArcGIS Pro 1.4 and earlier. We've fixed the problem in ArcGIS Pro 2.0, if you can upgrade.&lt;BR /&gt;&lt;BR /&gt;Cheers, Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 05:10:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-pandas-in-arcgis-pro/m-p/747219#M32708</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2017-10-25T05:10:25Z</dc:date>
    </item>
  </channel>
</rss>

