[Python_Error] TypeError: '>' not supported between instances of 'list' and 'int'


[Python_Error] TypeError: '>' not supported between instances of 'list' and 'int'

본 포스팅은 업무 중 발생했던 오류들을 예시를 통해 어떻게 해결을 하는지 작성했다. TypeError: '>' not supported between instances of 'list' and 'int' 본 오류는 리스트 형태의 어레이를 관계 연산자('>', '=', '' not supported between instances of 'list' and 'int' """ [해결 방법] 이는 단순히 리스트 형태의 어레이를 np.array를 통해 싸주고 넘파이 형태로 바꿔주면 해결이 가능하다. nums = np.array([1,2,3,4,5,6,7,8,9,10]) print(nums > 3) # [False False False True True True True True True True] 혹은 같은 리스..


원문링크 : [Python_Error] TypeError: '>' not supported between instances of 'list' and 'int'