0

How can I import pandas module in ArcGIS at figure. I want to calculate poisson and negative binomial, so I think I need import pandas or other modules.

import pandas as pd
 Runtime error 
 Traceback (most recent call last):
 File "<string>", line 1, in <module>
 ImportError: No module named pandas
import numpy as np
 from scipy.stats import nbinom
 def _ll_nb2(y, X, beta, alph):
 mu = np.exp(np.dot(X, beta))
 size = 1 / alph
 prob = size / (size + mu)
 ll = nbinom.logpmf(y, size, prob)
 return ll
 Runtime error 
 Traceback (most recent call last):
 File "<string>", line 2, in <module>
 File "C:\Python27\ArcGIS10.3\lib\site-packages\scipy\stats\__init__.py", line 338, in <module>
 from .stats import *
 File "C:\Python27\ArcGIS10.3\lib\site-packages\scipy\stats\stats.py", line 184, in <module>
 import scipy.special as special
File "C:\Python27\ArcGIS10.3\lib\site-packages\scipy\special\__init__.py", line 593, in <module>
 from ._ellip_harm import ellip_harm, ellip_harm_2, ellip_normal
 File "C:\Python27\ArcGIS10.3\lib\site-packages\scipy\special\_ellip_harm.py", line 7, in <module>
 from ._ellip_harm_2 import _ellipsoid, _ellipsoid_norm
 File "_ellip_harm_2.pyx", line 2, in init scipy.special._ellip_harm_2 (scipy\special\_ellip_harm_2.c:7480)
File "C:\Users\erdogan\Anaconda\Lib\ctypes\__init__.py", line 10, in <module>
 from _ctypes import Union, Structure, Array
 ImportError: DLL load failed: %1 not proper for Win32 application.

enter image description here

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Mar 31, 2015 at 8:22
2
  • Would you be able to edit your question to include the text (perhaps as well as the picture) of the code you are running and the error you see, please? Commented Mar 31, 2015 at 9:21
  • Just do not update Arc's numpy. There is a good discussion with solutions here: gis.stackexchange.com/questions/110425/…. Commented Sep 25, 2016 at 23:22

1 Answer 1

1

Answer is at https://stackoverflow.com/questions/20641199

Below steps worked for me(Windows8.1)

Install it

Configure pip a way to configure pip

Go to here and install prereqisites (wheel files)

Install panda

answered Mar 31, 2015 at 10:12

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.