파이썬 The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().

조회수 1605회

파이썬으로 dataframe비교를 하고있는데요

        if not ((df['on']) == (driver.find_elements_by_class_name('bg_wrap')[0])):
            print('실행')

셀레니움과 dataframe을 비교하는데 실행하면 The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). 이런 에러가 뜹니다. 이유를 아시는 분이 있을까요??

  • (•́ ✖ •̀)
    알 수 없는 사용자

1 답변

답변을 하려면 로그인이 필요합니다.

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)