ElbowPlot-ValueError:xandymusthavesamefirstdimension本问题已经有最佳答案,请猛点这里访问。我想为从excel文件中读取的预处理数据集生成肘部图。在下一步中,我想使用matplotlib包中的plot方法生成一个肘部图。执行代码后出现以下错误:1ValueError:xandymusthavesamefirstdimension,buthaveshapes(10,)and(1,)代码如下所示:1234567plt.plot(range(1,11),wcss,linewidth=4,color='black',marker='D',markers
ElbowPlot-ValueError:xandymusthavesamefirstdimension本问题已经有最佳答案,请猛点这里访问。我想为从excel文件中读取的预处理数据集生成肘部图。在下一步中,我想使用matplotlib包中的plot方法生成一个肘部图。执行代码后出现以下错误:1ValueError:xandymusthavesamefirstdimension,buthaveshapes(10,)and(1,)代码如下所示:1234567plt.plot(range(1,11),wcss,linewidth=4,color='black',marker='D',markers