<?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 Please help Grouping analysis in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/please-help-grouping-analysis/m-p/33518#M815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&lt;A class="" href="http://pro.arcgis.com/en/pro-app/tool-reference/spatial-statistics/grouping-analysis.htm"&gt;http://pro.arcgis.com/en/pro-app/tool-reference/spatial-statistics/grouping-analysis.htm&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;DIV style="margin-bottom: 20px;"&gt;&lt;TABLE cellspacing="0" style="background-color: #ffffff; border-top: 1px dotted #c8c8c8; border-bottom: 1px dotted #c8c8c8; margin-top: 20px; padding-top: 20px; padding-bottom: 20px;"&gt;&lt;TBODY&gt;&lt;TR valign="top"&gt;&lt;TD colspan="2"&gt;&lt;DIV&gt;&lt;A style="color: #666666; background-color: #fcf4f5; font-size: 14px !important; margin-left: 10px; padding: 8px;"&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="color: #db626c; font-size: 21px;"&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/spatial-statistics/grouping-analysis.htm" style="text-decoration: none;" target="_blank"&gt;Grouping Analysis—ArcGIS Pro | ArcGIS Desktop&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="color: #666666; margin: 10px 0px 16px;"&gt;pro.arcgis.com&lt;/DIV&gt;&lt;DIV style="color: #666666;"&gt;Legacy: The algorithm behind the Grouping Analysis tool has been enhanced and new functionality has been added to these methods at ArcGIS Pro 2.1.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;arcpy.stats.GroupingAnalysis("Serious Violent Crimes", "CCN", r"D:\Kathy\Desktop\ProT\EsriPress\bookdata\GIST1Pro\Chapter9\Tutorials\Chapter9.gdb\SeriousViolentCrimes_Groupin", 5, "Hierarchy;ArrGender;ArrRace;ARRAgeStnd", "NO_SPATIAL_CONSTRAINT", "EUCLIDEAN", None, None, "GET_SEEDS_FROM_FIELD", "Seed", r"D:\Kathy\Desktop\ProT\EsriPress\bookdata\GIST1Pro\Chapter9\Tutorials\clustereport.pdf", "DO_NOT_EVALUATE")&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;Traceback (most recent call last):&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;NameError: name 'arcpy' is not defined&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;import arcpy&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;arcpy.stats.GroupingAnalysis("Serious Violent Crimes", "CCN", r"D:\Kathy\Desktop\ProT\EsriPress\bookdata\GIST1Pro\Chapter9\Tutorials\Chapter9.gdb\SeriousViolentCrimes_Groupin", 5, "Hierarchy;ArrGender;ArrRace;ARRAgeStnd", "NO_SPATIAL_CONSTRAINT", "EUCLIDEAN", None, None, "GET_SEEDS_FROM_FIELD", "Seed", r"D:\Kathy\Desktop\ProT\EsriPress\bookdata\GIST1Pro\Chapter9\Tutorials\clustereport.pdf", "DO_NOT_EVALUATE")&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;Traceback (most recent call last):&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\arcpy\arcpy\stats.py", line 772, in GroupingAnalysis&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; raise e&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\arcpy\arcpy\stats.py", line 769, in GroupingAnalysis&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; retval = convertArcObjectToPythonObject(gp.GroupingAnalysis_stats(*gp_fixargs((Input_Features, Unique_ID_Field, Output_Feature_Class, Number_of_Groups, Analysis_Fields, Spatial_Constraints, Distance_Method, Number_of_Neighbors, Weights_Matrix_File, Initialization_Method, Initialization_Field, Output_Report_File, Evaluate_Optimal_Number_of_Groups), True)))&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\arcpy\arcpy\geoprocessing\_base.py", line 506, in &amp;lt;lambda&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; return lambda *args: val(*gp_fixargs(args, True))&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;arcgisscripting.ExecuteError: Traceback (most recent call last):&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\Partition.py", line 30, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import SSUtilities as UTILS&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\SSUtilities.py", line 25, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import SSDataObject as SSDO&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\SSDataObject.py", line 27, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import WeightsUtilities as WU&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\WeightsUtilities.py", line 22, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import SSPanelObject as SSPO&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\SSPanelObject.py", line 18, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import pandas as PANDAS&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\__init__.py", line 42, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; from pandas.core.api import *&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\api.py", line 10, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; from pandas.core.groupby import Grouper&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\groupby.py", line 49, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; from pandas.core.frame import DataFrame&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\frame.py", line 67, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; from pandas.core.generic import NDFrame, _shared_docs&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\generic.py", line 41, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import pandas.core.indexing as indexing&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;AttributeError: module 'pandas' has no attribute 'core'&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;Failed to execute (GroupingAnalysis).&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;import arcpy&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;GroupingAnalysis_stats("Serious Violent Crimes", "CCN", r"D:\Kathy\Desktop\ProT\EsriPress\bookdata\GIST1Pro\Chapter9\Tutorials\Chapter9.gdb\SeriousViolentCrimes_Groupin", 5, "Hierarchy;ArrGender;ArrRace;ARRAgeStnd", "NO_SPATIAL_CONSTRAINT", "EUCLIDEAN", None, None, "GET_SEEDS_FROM_FIELD", "Seed", r"D:\Kathy\Desktop\ProT\EsriPress\bookdata\GIST1Pro\Chapter9\Tutorials\clustereport.pdf", "DO_NOT_EVALUATE")&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;Traceback (most recent call last):&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 2, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;NameError: name 'GroupingAnalysis_stats' is not defined&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;import arcpy&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;arcpy.stats.GroupingAnalysis("Serious Violent Crimes", "CCN", r"D:\Kathy\Desktop\ProT\EsriPress\bookdata\GIST1Pro\Chapter9\Tutorials\Chapter9.gdb\SeriousViolentCrimes_Groupin", 5, "Hierarchy;ArrGender;ArrRace;ARRAgeStnd", "NO_SPATIAL_CONSTRAINT", "EUCLIDEAN", None, None, "GET_SEEDS_FROM_FIELD", "Seed", r"D:\Kathy\Desktop\ProT\EsriPress\bookdata\GIST1Pro\Chapter9\Tutorials\clustereport.pdf", "DO_NOT_EVALUATE")&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;Traceback (most recent call last):&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 2, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\arcpy\arcpy\stats.py", line 772, in GroupingAnalysis&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; raise e&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\arcpy\arcpy\stats.py", line 769, in GroupingAnalysis&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; retval = convertArcObjectToPythonObject(gp.GroupingAnalysis_stats(*gp_fixargs((Input_Features, Unique_ID_Field, Output_Feature_Class, Number_of_Groups, Analysis_Fields, Spatial_Constraints, Distance_Method, Number_of_Neighbors, Weights_Matrix_File, Initialization_Method, Initialization_Field, Output_Report_File, Evaluate_Optimal_Number_of_Groups), True)))&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\arcpy\arcpy\geoprocessing\_base.py", line 506, in &amp;lt;lambda&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; return lambda *args: val(*gp_fixargs(args, True))&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;arcgisscripting.ExecuteError: Traceback (most recent call last):&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\Partition.py", line 30, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import SSUtilities as UTILS&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\SSUtilities.py", line 25, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import SSDataObject as SSDO&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\SSDataObject.py", line 27, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import WeightsUtilities as WU&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\WeightsUtilities.py", line 22, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import SSPanelObject as SSPO&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\SSPanelObject.py", line 18, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import pandas as PANDAS&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\__init__.py", line 42, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; from pandas.core.api import *&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\api.py", line 10, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; from pandas.core.groupby import Grouper&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\groupby.py", line 49, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; from pandas.core.frame import DataFrame&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\frame.py", line 67, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; from pandas.core.generic import NDFrame, _shared_docs&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\generic.py", line 41, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import pandas.core.indexing as indexing&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;AttributeError: module 'pandas' has no attribute 'core'&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;Failed to execute (GroupingAnalysis).&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Feb 2018 19:52:05 GMT</pubDate>
    <dc:creator>KathyMulcahy</dc:creator>
    <dc:date>2018-02-20T19:52:05Z</dc:date>
    <item>
      <title>Please help Grouping analysis</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/please-help-grouping-analysis/m-p/33518#M815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&lt;A class="" href="http://pro.arcgis.com/en/pro-app/tool-reference/spatial-statistics/grouping-analysis.htm"&gt;http://pro.arcgis.com/en/pro-app/tool-reference/spatial-statistics/grouping-analysis.htm&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;DIV style="margin-bottom: 20px;"&gt;&lt;TABLE cellspacing="0" style="background-color: #ffffff; border-top: 1px dotted #c8c8c8; border-bottom: 1px dotted #c8c8c8; margin-top: 20px; padding-top: 20px; padding-bottom: 20px;"&gt;&lt;TBODY&gt;&lt;TR valign="top"&gt;&lt;TD colspan="2"&gt;&lt;DIV&gt;&lt;A style="color: #666666; background-color: #fcf4f5; font-size: 14px !important; margin-left: 10px; padding: 8px;"&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="color: #db626c; font-size: 21px;"&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/spatial-statistics/grouping-analysis.htm" style="text-decoration: none;" target="_blank"&gt;Grouping Analysis—ArcGIS Pro | ArcGIS Desktop&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="color: #666666; margin: 10px 0px 16px;"&gt;pro.arcgis.com&lt;/DIV&gt;&lt;DIV style="color: #666666;"&gt;Legacy: The algorithm behind the Grouping Analysis tool has been enhanced and new functionality has been added to these methods at ArcGIS Pro 2.1.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;arcpy.stats.GroupingAnalysis("Serious Violent Crimes", "CCN", r"D:\Kathy\Desktop\ProT\EsriPress\bookdata\GIST1Pro\Chapter9\Tutorials\Chapter9.gdb\SeriousViolentCrimes_Groupin", 5, "Hierarchy;ArrGender;ArrRace;ARRAgeStnd", "NO_SPATIAL_CONSTRAINT", "EUCLIDEAN", None, None, "GET_SEEDS_FROM_FIELD", "Seed", r"D:\Kathy\Desktop\ProT\EsriPress\bookdata\GIST1Pro\Chapter9\Tutorials\clustereport.pdf", "DO_NOT_EVALUATE")&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;Traceback (most recent call last):&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;NameError: name 'arcpy' is not defined&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;import arcpy&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;arcpy.stats.GroupingAnalysis("Serious Violent Crimes", "CCN", r"D:\Kathy\Desktop\ProT\EsriPress\bookdata\GIST1Pro\Chapter9\Tutorials\Chapter9.gdb\SeriousViolentCrimes_Groupin", 5, "Hierarchy;ArrGender;ArrRace;ARRAgeStnd", "NO_SPATIAL_CONSTRAINT", "EUCLIDEAN", None, None, "GET_SEEDS_FROM_FIELD", "Seed", r"D:\Kathy\Desktop\ProT\EsriPress\bookdata\GIST1Pro\Chapter9\Tutorials\clustereport.pdf", "DO_NOT_EVALUATE")&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;Traceback (most recent call last):&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\arcpy\arcpy\stats.py", line 772, in GroupingAnalysis&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; raise e&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\arcpy\arcpy\stats.py", line 769, in GroupingAnalysis&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; retval = convertArcObjectToPythonObject(gp.GroupingAnalysis_stats(*gp_fixargs((Input_Features, Unique_ID_Field, Output_Feature_Class, Number_of_Groups, Analysis_Fields, Spatial_Constraints, Distance_Method, Number_of_Neighbors, Weights_Matrix_File, Initialization_Method, Initialization_Field, Output_Report_File, Evaluate_Optimal_Number_of_Groups), True)))&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\arcpy\arcpy\geoprocessing\_base.py", line 506, in &amp;lt;lambda&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; return lambda *args: val(*gp_fixargs(args, True))&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;arcgisscripting.ExecuteError: Traceback (most recent call last):&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\Partition.py", line 30, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import SSUtilities as UTILS&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\SSUtilities.py", line 25, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import SSDataObject as SSDO&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\SSDataObject.py", line 27, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import WeightsUtilities as WU&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\WeightsUtilities.py", line 22, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import SSPanelObject as SSPO&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\SSPanelObject.py", line 18, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import pandas as PANDAS&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\__init__.py", line 42, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; from pandas.core.api import *&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\api.py", line 10, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; from pandas.core.groupby import Grouper&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\groupby.py", line 49, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; from pandas.core.frame import DataFrame&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\frame.py", line 67, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; from pandas.core.generic import NDFrame, _shared_docs&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\generic.py", line 41, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import pandas.core.indexing as indexing&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;AttributeError: module 'pandas' has no attribute 'core'&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;Failed to execute (GroupingAnalysis).&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;import arcpy&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;GroupingAnalysis_stats("Serious Violent Crimes", "CCN", r"D:\Kathy\Desktop\ProT\EsriPress\bookdata\GIST1Pro\Chapter9\Tutorials\Chapter9.gdb\SeriousViolentCrimes_Groupin", 5, "Hierarchy;ArrGender;ArrRace;ARRAgeStnd", "NO_SPATIAL_CONSTRAINT", "EUCLIDEAN", None, None, "GET_SEEDS_FROM_FIELD", "Seed", r"D:\Kathy\Desktop\ProT\EsriPress\bookdata\GIST1Pro\Chapter9\Tutorials\clustereport.pdf", "DO_NOT_EVALUATE")&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;Traceback (most recent call last):&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 2, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;NameError: name 'GroupingAnalysis_stats' is not defined&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;import arcpy&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;arcpy.stats.GroupingAnalysis("Serious Violent Crimes", "CCN", r"D:\Kathy\Desktop\ProT\EsriPress\bookdata\GIST1Pro\Chapter9\Tutorials\Chapter9.gdb\SeriousViolentCrimes_Groupin", 5, "Hierarchy;ArrGender;ArrRace;ARRAgeStnd", "NO_SPATIAL_CONSTRAINT", "EUCLIDEAN", None, None, "GET_SEEDS_FROM_FIELD", "Seed", r"D:\Kathy\Desktop\ProT\EsriPress\bookdata\GIST1Pro\Chapter9\Tutorials\clustereport.pdf", "DO_NOT_EVALUATE")&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;Traceback (most recent call last):&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 2, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\arcpy\arcpy\stats.py", line 772, in GroupingAnalysis&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; raise e&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\arcpy\arcpy\stats.py", line 769, in GroupingAnalysis&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; retval = convertArcObjectToPythonObject(gp.GroupingAnalysis_stats(*gp_fixargs((Input_Features, Unique_ID_Field, Output_Feature_Class, Number_of_Groups, Analysis_Fields, Spatial_Constraints, Distance_Method, Number_of_Neighbors, Weights_Matrix_File, Initialization_Method, Initialization_Field, Output_Report_File, Evaluate_Optimal_Number_of_Groups), True)))&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\arcpy\arcpy\geoprocessing\_base.py", line 506, in &amp;lt;lambda&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; return lambda *args: val(*gp_fixargs(args, True))&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;arcgisscripting.ExecuteError: Traceback (most recent call last):&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\Partition.py", line 30, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import SSUtilities as UTILS&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\SSUtilities.py", line 25, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import SSDataObject as SSDO&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\SSDataObject.py", line 27, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import WeightsUtilities as WU&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\WeightsUtilities.py", line 22, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import SSPanelObject as SSPO&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "d:\arcgis\pro\Resources\ArcToolbox\Scripts\SSPanelObject.py", line 18, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import pandas as PANDAS&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\__init__.py", line 42, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; from pandas.core.api import *&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\api.py", line 10, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; from pandas.core.groupby import Grouper&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\groupby.py", line 49, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; from pandas.core.frame import DataFrame&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\frame.py", line 67, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; from pandas.core.generic import NDFrame, _shared_docs&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\generic.py", line 41, in &amp;lt;module&amp;gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; import pandas.core.indexing as indexing&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;AttributeError: module 'pandas' has no attribute 'core'&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt;Failed to execute (GroupingAnalysis).&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 19:52:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/please-help-grouping-analysis/m-p/33518#M815</guid>
      <dc:creator>KathyMulcahy</dc:creator>
      <dc:date>2018-02-20T19:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Please help Grouping analysis</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/please-help-grouping-analysis/m-p/33519#M816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/45316"&gt;Kory Kramer&lt;/A&gt;‌ I'm also getting this pandas error trying to run the TableToExcel_conversion tool from the Python window, but I think this would be classified more appropriately under &lt;A href="https://community.esri.com/space/2151"&gt;ArcGIS Pro&lt;/A&gt; or &lt;A href="https://community.esri.com/space/2051"&gt;Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 17:45:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/please-help-grouping-analysis/m-p/33519#M816</guid>
      <dc:creator>JustinConnerWR</dc:creator>
      <dc:date>2018-09-11T17:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Please help Grouping analysis</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/please-help-grouping-analysis/m-p/33520#M817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/space/2145"&gt;Python&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 15:06:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/please-help-grouping-analysis/m-p/33520#M817</guid>
      <dc:creator>KoryKramer</dc:creator>
      <dc:date>2018-09-17T15:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Please help Grouping analysis</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/please-help-grouping-analysis/m-p/1260875#M16818</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/82461"&gt;@KathyMulcahy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I've try to run grouping analysis and also require the output report. Unfortunately, i got the same problem with you. And from other Community, there is someone sharing that "Traceback error" can fix by rename the report without typing "space". Although trying through, it's still can't work. So,&amp;nbsp;If it is convenient, can you share how to figure out this problem?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 14:18:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/please-help-grouping-analysis/m-p/1260875#M16818</guid>
      <dc:creator>JENNYLIII</dc:creator>
      <dc:date>2023-02-23T14:18:36Z</dc:date>
    </item>
  </channel>
</rss>

