运行下面代码时报错 dataDf.to_excel('pca_cluster.xls') 这是因为单个 sheet 限制最大行数为65535,因此,当读写数据量超出时就会出现如上错误。 把.to_excel改成to_csv就好了