본문 바로가기

반전공자

검색하기
반전공자
프로필사진 하연01

  • 분류 전체보기 (134)
    • 잡담 (6)
    • 게임 데이터 분석 (10)
    • 데청캠 연세대 (10)
    • DATABASE (8)
    • 데이터분석 (28)
      • 태블로 (7)
      • PySpark (12)
      • 데테_인공지능 (11)
      • R (36)
    • BOAZ (2)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • GitHub
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
  • scikit-learn
  • ionehotencoding
  • Word Cloud
  • iNT
  • SQL
  • Udemy
  • 파이썬
  • 데이터분석
  • numpy
  • 형태소분석기
  • Okt
  • Tableau
  • 인공지능
  • pandas
  • input
  • 태블로
  • Python
  • 크롤링
  • 시각화
  • pyspark
  • 머신러닝
  • konlpy
  • 데이터
  • 데이터 분석
  • selenium
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록ionehotencoding (1)

반전공자

One-hot encoding with Scikit-learn

# LabelEncoder() + OneHotEncoder() import pandas as pd from sklearn.preprocessing import OneHotEncoder from sklearn.preprocessing import LabelEncoder x1 = pd.DataFrame({'country':['russia','germany','australia','korea','germany']}) # 데이터 프레임 전체를 라벨인코딩 후 one hot encoding 해야 한다. # LabelEncoding le = LabelEncoder() x2 = x1.apply(le.fit_transform) print(x2) print(type(x2)) # OneHotEncoding encoder =..

데이터분석/데테_인공지능 2021. 6. 20. 20:11
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바