Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 25521

A site-package created by Esri to expose ArcGIS Desktop (ArcMap and ArcGIS Pro) geoprocessing, mapping, etc, to Python.

2 votes
1 answer
1k views

Python with ArcGIS: import scikit-learn fails (bad numpy.dtype)

I am trying to install scikit-learn 0.17.1 (current) into my Python 2.7.3 that accompanies my ArcGIS 10.2. The installation through easy_install goes through smoothly, but I get the following error on …
3 votes
Accepted

Printing name of field with highest value?

This should work: def compMaxField(table, fields, maxFldName, maxValName): arcpy.AddField_management(table, maxFldName, 'TEXT') # field name with max value arcpy.AddField_management(table, maxVal …
Jan Šimbera's user avatar
  • 1,314
1 vote

Understanding UnicodeDecodeError: 'utf8' codec in ArcPy script?

I'd suggest writing the results to a file instead, so that you can do something like this: import arcpy,os,fnmatch,unicodedata,codecs rootPath = r"C:\Project\layers" pattern = 'mig*.shp' with …
Jan Šimbera's user avatar
  • 1,314
3 votes

GetParameterAsText(arcpy) does not work

GetParameterAsText works differently (at least in ArcGIS 10). It parses command line arguments passed to the script when it is run so that arcpy.GetParameterAsText(n) returns the same as sys.argv[n+1] …
Jan Šimbera's user avatar
  • 1,314
2 votes

Output raster from IDW interpolation tool is from 3.40282e+038 to -3.40282e+038 in ArcPy

The reason is probably in ArcMap unable to recognize a NoData value set by the IDW tool as either 3.40282e+038 or -3.40282e+038. I'd recommend using SetNull tool for these two values on the result an …
Jan Šimbera's user avatar
  • 1,314
2 votes

Locating 0-points multipart polygons using arcpy

Have you tried using the old-style SearchCursor (not the one from the da module)? It may not be as efficient, but I think it is much more bugproof. I would also replace the line poly = arcpy.Polygon( …
Jan Šimbera's user avatar
  • 1,314
0 votes

python.exe has stopped working

Have you checked how the script handles cursors? My applications often hang when I forget to close them using explicit del row, cursor, sometimes only after some time. If that doesn't help, I'd sugge …
Jan Šimbera's user avatar
  • 1,314