파이썬
TypeError: Cannot perform 'rand_' with a dtyped [float64] array and scalar of type [bool]
mcdn
2022. 12. 7. 15:49
반응형
파이썬 pandas error
TypeError: Cannot perform 'rand_' with a dtyped [float64] array and scalar of type [bool]
TypeError: Cannot perform 'rand_' with a dtyped [float64] array and scalar of type [bool]
여러개의 column을 filter해서 값을 추출하려고 했는데, 오류가 생겼다.
(=여러 개의 조건을 만족하는 값으로 dataframe 을 꺼내기)
해결 ()로 묶기
조건문을 각각 ()로 묶어주면 해결 된다.
반응형