- 博客(2)
- 收藏
- 关注
原创 ValueError: The number of weights does not match the population
遇到了ValueError: The number of weights does not match the population。查看代码,是调用了random.choices(a, b, weights)下面是我的代码中的错误点,原因是因为数据缺失,所以长度不一致。需要保证 a与b的长度一致,不报错。
2023-07-24 09:44:24
1192
原创 :TypeError: read_csv() got an unexpected keyword argument ‘squeeze‘:
所以pip uninstall pandas。出现这个问题是我的pandas==2.0。这是因为pandas的版本新了。
2023-07-23 17:50:03
1308
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人