raise ValueError(
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
# 我的代码(错误行) ret为pd.series结构 我们python的如下判断是无法成功的 报错信息有提示
if not ret:
continue
#修改为
if ret is None:
continue
raise ValueError(
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
# 我的代码(错误行) ret为pd.series结构 我们python的如下判断是无法成功的 报错信息有提示
if not ret:
continue
#修改为
if ret is None:
continue