原文:ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any()

在使用pandas判断数据时出现错误提示: ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool , a.item , a.any or a.all . 个人理解:这是因为,你将一个值与多个值或一个列表中的值相比较 匹配,导致的问题 看提示,我们可以知道,在比较前,我们可以使用它推荐的某个方法: a.em ...

2019-09-14 11:37 0 2413 推荐指数:

查看详情

ValueError: max() arg is an empty sequence

pycharm设置的问题,在菜单栏File-Setting-Tools-Python Scientific中去除勾选Show plots in tool window即可解决问题。 ...

Sat Mar 13 04:10:00 CST 2021 0 1823
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM