https://rfriend.tistory.com/482
[Python] pandas DataFrame: ValueError: If using all scalar values, you must pass an index 에러 해결 방법
이번 포스팅에서는 Python pandas DataFrame을 만들려고 할 때 "ValueError: If using all scalar values, you must pass an index" 에러 해결 방안 4가지를 소개하겠습니다. 아래의 예처럼 dictionary로 키, 값..
rfriend.tistory.com
Dictionary → DataFrame 변환하기
KNN 공부하면서 plot을 이용해 가장 accuracy가 높은 k값을 찾는 작업을 하던 중에, from sklearn.neighbors import KNeighborsClassifier import pandas as pd result = {} for i in range(1,150,2): model = KNe..
yeol2.tistory.com
'Code Cloud > python' 카테고리의 다른 글
[numpy] np.random.permutation() (0) | 2022.01.07 |
---|---|
[python] 데이터 시각화 파이 차트 (0) | 2022.01.07 |
jupyter notebook 에서 dataframe 텍스트 정렬 (0) | 2022.01.03 |
pandas 딕셔너리를 데이터프레임으로 변환 DataFrame.from_dict() (0) | 2022.01.02 |
iframe 제목 확인 코드 (0) | 2022.01.02 |