ERROR12 TypeError: corr() got an unexpected keyword argument 'numeric_only' # 상관관계를 수치값으로 확인 .corr() df.corr(numeric_only=True)상관관계를 구하는 함수를 실행하여 발생한 오류 아마 버전이 맞지 않아 발생한 것 같다ㅎㅁㅎ,,df.select_dtypes(include=[np.number]).corr()위의 코드를 실행하여 수치형 열만 선택한 후 corr() 메소드를 사용하면 수치형 열만 포함된 데이터프레임에 대해 상관 계수를 계산하여 오류 없이 실행이 가능하다! 2024. 9. 9. ValueError: Setting a random_state has no effect since shuffle is False. You should leave random_state to its default (None), or set shuffle=True. 실행 코드 cv = KFold(n_splits= 5, random_state=2022) 결과 ValueError: Setting a random_state has no effect since shuffle is False. You should leave random_state to its default (None), or set shuffle=True. 해결 방법 shuffle=True로 추가 입력 cv = KFold(n_splits= 5, shuffle=True, random_state=2022) 2022. 4. 16. InvocationException: Program terminated with status: 1. stderr follows: Format: "png" not recognized. Use one of: 발생 오류 실행한 코드 graph.write_png('tree.png') # 결정 트리를 위한 그림 저장 결과 InvocationException: Program terminated with status: 1. stderr follows: Format: "png" not recognized. Use one of: 결정 트리를 생성하고 graphvis를 이용해 결과를 이미지 (png) 형식으로 저장하는 과정에서 발생한 에러 오류 해결 anaconda cmd를 관리자 권한으로 실행 > dot -c 입력 > 에러가 발생한 코드 다시 실행 > True 주피터 노트북을 실행한 경로로 들어가보면 해당 이미지 파일이 저장된 것을 확인할 수 있다. matplotlib으로 해당 image 파일을 불러옴 # import .. 2022. 4. 16. R : RStudio Error - Warning message:In normalizePath(path.expand(path), winslash, mustWork) : path[1]="C:/Users/OneDrive/??" ERROR: R Studio 설치 후 입력하자마자 발생한 오류 Warning message:In normalizePath(path.expand(path), winslash, mustWork) : path[1]="C:/Users/OneDrive/?? 해결방법 : 문서 우클릭 > 속성 > 위치 > OneDrive\문서 를 OneDrive\documents 로 변경 2022. 2. 2. 이전 1 2 3 다음