New answers tagged

0 votes

Seeking faster alternative to arcpy.Statistics_analysis?

This is why I am using Pandas, to do a job quickly: Output: Script: import arcpy from arcpy import env inTable=arcpy.GetParameterAsText(0) caseField=arcpy.GetParameterAsText(1) theFields=arcpy....
user avatar
  • 21.7k
3 votes

How to use ArcPy SearchCursor, with a where clause, to return string formatted response with values

Similar to @timlohnes answer, but using a dictionary for all crop types, instead of a series of hard-coded scalar variables for each crop type. cropDict = {} with arcpy.da.SearchCursor(fc,fields) as ...
user avatar
2 votes

How to use ArcPy SearchCursor, with a where clause, to return string formatted response with values

Are you looking for something like this. Add up all the values for different crops, report it out at the end. I left out the format {} bits as I'm not familiar with that. Tried using brackets and ...
user avatar
  • 1,238

Top 50 recent answers are included