成功解决IndexError: arrays used as indices must be of integer (or boolean) type
成功解决IndexError: arrays used as indices must be of integer (or boolean) type
解决问题
IndexError: arrays used as indices must be of integer (or boolean) type
解决思路
索引错误:用作索引的数组必须是整数(或布尔)类型
解决方法
将
t #类型为numpy.ndarray
改为“
t.astype('int64')
哈哈,大功告成!
赞 (0)