반응형
from sklearn.preprocessing import StandardScaler
std_VS_102_103 = StandardScaler().fit_transform(VS_102_103[['VectorSimilarity']])
Expected 2D array, got 1D array instead:
[와 ]를 한번씩만 쓰면 이 오류가 뜨니 [와 ]를 두 번씩 써주자.
반응형
'🖥️ IT, 컴퓨터 > 🐍 Python' 카테고리의 다른 글
[Python] 데이터프레임 내 값들의 종류 파악하기 (unique / drop_duplicates) (0) | 2023.04.13 |
---|---|
[Python] 경위도 좌표로 지도 나타내기 with Folium (1) | 2023.04.13 |
[Python] 분포그래프 그리기 :: sns.distplot() (0) | 2023.04.13 |
[Python] Dataframe에서 숫자 대소관계 만족시키면 호출하기 (0) | 2023.04.13 |
[Python] f-string으로 문자열 포맷팅하기 (0) | 2023.04.13 |
댓글