리스크 컨설턴트 성장기
프로필 배경
프로필 로고

리스크 컨설턴트 성장기

    • 분류 전체보기 (157)
      • About. (1)
      • Risk Management (1)
        • Credit Risk (1)
      • Data Science (46)
        • python (41)
        • R (2)
        • SQL (2)
        • SAS (0)
      • STAT & MATH (3)
        • calculus (3)
      • Jay's Project (19)
        • wanted 채용 공고 분석 (8)
        • 포켓몬 소드&실드 리뷰 분석 (6)
        • 교보문고 책 추천시스템 구현 (5)
      • Algorithm (0)
      • Archive (8)
      • TIL (42)
      • Code Cloud (34)
        • python (34)
        • R (0)
      • Trouble Shooting (3)
      • 일상 (0)
  • mode_edit_outline글작성
  • settings환경설정
  • 홈
  • 태그
  • 방명록

pandas 인덱스 무작위로 섞기

# 클래스 레이블 무작위로 섞기 : reindex np.random.seed(0) df = df.reindex(np.random.permutation(df.index)) # 이 부분 정리 df.to_csv('train_clean.csv',index=False,encoding='utf-8-sig')

  • format_list_bulleted Code Cloud/python
  • · 2022. 1. 20.
  • textsms

pandas 특정 행,열 제거

#id 컬럼 제거 df.drop('id',axis=1, inplace=True) # axis=0 로우

  • format_list_bulleted Code Cloud/python
  • · 2022. 1. 20.
  • textsms

전처리 함수 정의

# 전처리 함수 정의 def preprocessor(text): text = re.sub('[^가-힣\s]+','',text) # 한글, 공백문자 남기고 다 날리기 return text

  • format_list_bulleted Code Cloud/python
  • · 2022. 1. 20.
  • textsms

url로 이미지 첨부하기

from IPython.display import Image Image(url="https://www.researchgate.net/profile/Hieu_Tran33/publication/333457161/figure/fig3/AS:763959762247682@1559153609649/Linear-Regression-model-sample-illustration.ppm")

  • format_list_bulleted Code Cloud/python
  • · 2022. 1. 18.
  • textsms

train, test 데이터셋 분리

# tain, test 분리 X_train, X_test, y_train, y_test = train_test_split(iris_data, iris_label, test_size=0.2, random_state=11) # 테스트 사이즈 20% 할당 # random_state : radom seed 고정

  • format_list_bulleted Code Cloud/python
  • · 2022. 1. 17.
  • textsms

리스트 비교 후 서로 다른 항목만 가져오기

allshort_list = [] for i in short_list : if i not in collapsed_list : allshort_list.append(i)

  • format_list_bulleted Code Cloud/python
  • · 2022. 1. 8.
  • textsms

[pandas] 행/열 전체 객체에 적용 df.apply()

df['review'] = df['review'].apply(preprocessor) https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=wideeyed&logNo=221559041280 [Python][Pandas] Apply 함수란? Pandas Dataframe(데이터프레임, 2차원) 타입의 객체에서 호출할 수 있는 apply함수에 대해서 알아봅니다... blog.naver.com

  • format_list_bulleted Code Cloud/python
  • · 2022. 1. 7.
  • textsms

[numpy] np.random.permutation()

https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=shwotjd14&logNo=221862285781 Python numpy.random.permutation() 사용 버전: Python 3.7.6 사용 프로그램: Atom 1.45.0 x64 파이썬 numpy.random.permutation()에 대해서 ... blog.naver.com

  • format_list_bulleted Code Cloud/python
  • · 2022. 1. 7.
  • textsms

[python] 데이터 시각화 파이 차트

https://mirandaherr.tistory.com/38 [100일 챌린지] 파이썬 pandas 파이 차트 그리기 (옵션 추가) #036 아래 자료를 이용하여 파이 차트를 그려보겠다. 1. 파이 차트 그리기 pie 함수에 데이터를 넣어주면 된다. plt.pie() 2. 동그란 원 그리기 plt.axis('equal') 위 함수를 이용하면 원이 더 동그래진다. 3. 레 mirandaherr.tistory.com

  • format_list_bulleted Code Cloud/python
  • · 2022. 1. 7.
  • textsms

[pandas] DataFrame ValueError: If using all scalar values, you must pass an index

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 https://yeol2.tistory.com/9 Dictionary → DataFrame 변환하기 KNN 공부하면서 plot을 이용해 가장 accuracy가..

  • format_list_bulleted Code Cloud/python
  • · 2022. 1. 7.
  • textsms
  • «
  • 1
  • 2
  • 3
  • 4
  • »
공지사항
전체 카테고리
  • 분류 전체보기 (157)
    • About. (1)
    • Risk Management (1)
      • Credit Risk (1)
    • Data Science (46)
      • python (41)
      • R (2)
      • SQL (2)
      • SAS (0)
    • STAT & MATH (3)
      • calculus (3)
    • Jay's Project (19)
      • wanted 채용 공고 분석 (8)
      • 포켓몬 소드&실드 리뷰 분석 (6)
      • 교보문고 책 추천시스템 구현 (5)
    • Algorithm (0)
    • Archive (8)
    • TIL (42)
    • Code Cloud (34)
      • python (34)
      • R (0)
    • Trouble Shooting (3)
    • 일상 (0)
최근 글
인기 글
최근 댓글
태그
  • #gridsearch
  • #데이터분석가
  • #sklearn
  • #감성분석
  • #KoNLPy
  • #자연어처리
  • #nlp
  • #데이터분석
  • #리뷰분석
  • #decisionclassfier
  • #텍스트데이터분석
  • #Okt
  • #Wanted
  • #python
  • #CBF
  • #리뷰데이터
  • #키워드 픽
  • #책 분석
  • #Crawling
  • #추천시스템
  • #파이썬
  • #어간추출
  • #seaborn
  • #시각화
  • #wordcloud
  • #머신러닝
  • #크롤링
  • #matplotlib
  • #그리드서치
  • #selenium
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바