0

I have found that pandas v13.0 for Python 2.7 win32 works for most codes I have written in which I want to use both arcpy and pandas. I put that pandas version into the C:\Python27\ArcGIS10.2\Lib\site-packages directory. I tried other versions, but got miscellaneous errors when trying to run them.

I wrote a new code today, however, that manages to not work. It gives the error:

Access violation at address 1E0ACF39 in module 'python27.dll'. Read of address 9807D3AF.

with the following code:

cond = dfDSS['OBSERVATION NAME']=='A413011CC1' dfDSS['GROUP'][cond]='HA273UTheads' 

All the code before this to create dfDSS using pd.read_csv and inserting the column 'GROUP' with a value of 'other' everywhere is fine. Only when I try to reset the values using the conditional statement.

The code to this point was written in iPython Notebook using Anaconda, but I now want to do some arcpy stuff with it.

Any suggestions in getting the different versions of Python to work together are appreciated.

4
  • If you have anaconda installed why not just upgrade using conda update pandas? See related: stackoverflow.com/questions/22840449/… Commented Apr 9, 2015 at 7:47
  • @EdChum. I don't understand how that will help. The newer versions pandas don't seem compatible with ESRI python. Commented Apr 9, 2015 at 14:57
  • Well I don't know anything about arcGIS but if this was a maintained library it should hopefully be compatible with the latest pandas or at least newer versions Commented Apr 9, 2015 at 14:59
  • Thinking that ipython notebook is using a different, likely newer, version of both python and pandas than what you're using when running w/ESRI python. Commented Jul 13, 2015 at 16:40

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.