AttributeError: 'numpy.ndarray' object has no attribute 'iloc'
去除iloc即可 比如将:
data.iloc[:100,:]
更改为:
data[:100,:]
就ok了