데이터 프레임을 리스트로 변경할때 뜨는 에러 메세지
df[col].tolist()
# AttributeError: 'DataFrame' object has no attribute 'tolist'
해결방법
df[col].values.tolist()
values.tolist() 로 변경하면 된다.
반응형
'Python > Exception' 카테고리의 다른 글
[Python] Dataframe_image OsError: Chrome executable not able to be found on your machine (0) | 2023.05.07 |
---|