您当前的位置: 首页 > 
  • 0浏览

    0关注

    2393博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

成功解决IndexError: index 0 is out of bounds for axis 1 with size 0

一个处女座的程序猿 发布时间:2019-01-31 16:58:41 ,浏览量:0

成功解决IndexError: index 0 is out of bounds for axis 1 with size 0

 

目录

解决问题

解决思路

解决方法

 

 

解决问题

IndexError: index 0 is out of bounds for axis 1 with size 0

 

 

 

解决思路

查看列表,输出列表内容,查看列表的形状,发现列表的确是空值,所以修改列表内容即可!

print(list.shape)

 

 

 

解决方法
y = train_np[:, 0]

print(train_np)  


#修改列表的内容使其不为空列表即可!

大功告成!哈哈!

关注
打赏
1664196048
查看更多评论
立即登录/注册

微信扫码登录

0.0815s