\Users\-----\Anaconda3\lib\site-packages\keras\initializers.py", line 209, in __call__TypeError: only size-1 arrays can be converted to Python scalars 在线研究发现,当普通列表与numpy函数一起使用时,会出现此错误,但在我的示例中,使
我试图打印一个df与5列与一些有关金融工具的信息。列表no_float_prezzo是在解析web时创建的,它包含text data。但是,我不能执行这个算术运算,因为Python不能将no_float_prezzo文本数据转换成浮点数。我试着做prezzo = float(no_float_prezzo),但是终端给了我错误:"TypeError: only size-1 arrays can be converted to Pythonprezzo, 'quant