[Python_Error] TypeError: first argument must be an iterable of pandas objects, you passed an object of type


[Python_Error] TypeError: first argument must be an iterable of pandas objects, you passed an object of type

본 포스팅은 업무 중 발생했던 오류들을 어떻게 해결했는지 작성했다. TypeError: first argument must be an iterable of pandas objects, you passed an object of type "DataFrame" 위 에러는 pandas에서 제공하는 concat 함수를 사용할 때 발생한 오류이다. concat에 입력이 리스트 혹은 튜플이 아닌 형태로 들어갈 때 위와 같은 에러 메시지가 떴다. 에러가 발생한 코드는 다음과 같다. xray_excel_path = './new_annotation.xlsx' for i in range(10): ct_dict = {} ct_dict['name'] = ['ct_{}'.format(i+1)] ct_dict['dcm_paths..


원문링크 : [Python_Error] TypeError: first argument must be an iterable of pandas objects, you passed an object of type