Codelog

[AIB] Feature Engineering 본문

Boot Camp/section1

[AIB] Feature Engineering

minzeros 2021. 9. 27. 16:29

Feature Engineering

Feature Engineering은 도메인 지식과 창의성을 바탕으로 데이터셋에 존재하는 Feature들을 재조합하여 새로운 Feature를 만드는 것이다.

 

 

String replace

string variable.replace('삭제할 글자', '대체할 글자')

testStr = '25,970'
testStr.replace(',', '')	# ','를 공백으로 대체
# 25970
testStr
# 25,970

 

Apply

pandas.DataFrame.apply

DataFrame.apply(funcaxis=0raw=Falseresult_type=Noneargs=()**kwargs)

 

 

'Boot Camp > section1' 카테고리의 다른 글

Type of Error (TP, TN, FP, FN)  (0) 2021.10.10
[AIB] Chi-Square Test  (0) 2021.10.09
[AIB] Hypothesis Test  (0) 2021.10.09
[AIB] Data Manipulation  (0) 2021.10.01
[AIB] EDA  (0) 2021.09.27