需要求得满足多个逻辑条件的数据时,要使用& 和|,在某些条件下用and/ or会报错‘ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().’

python中and与&报错 ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item()

我把and换成&,错误就解决啦!

相关文章:

  • 2021-10-27
  • 2022-12-23
  • 2021-05-24
  • 2022-03-08
  • 2021-09-29
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-05
  • 2022-12-23
  • 2021-06-08
  • 2021-08-16
相关资源
相似解决方案