错误:

AttributeError: 'numpy.ndarray' object has no attribute 'iloc'

解决:

去除iloc即可
比如将:

data.iloc[:100,:]

更改为:

data[:100,:]

就ok了