ValueError:无法将字符串转换为float:无聊

2024-10-03 23:26:41 发布

您现在位置:Python中文网/ 问答频道 /正文

这是我的数据框。在

    tag         score
0   hiding      63.0
1   windowsill  1.0
2   porch       1.0
3   deck        1.0
4   bored       1.0

我在试着把比分和标签比较。在

^{pr2}$

我得到以下错误

ValueError: could not convert string to float: 'bored'

我做错什么了?在


Tags: 数据converttag错误not标签couldscore