
218
2부 사이킷런을 사용한 비지도 학습 모델
'open_acc','pub_rec','revol_bal','revol_util',
'total_acc','initial_list_status','out_prncp',
'out_prncp_inv','total_pymnt','total_pymnt_inv',
'total_rec_prncp','total_rec_int','total_rec_late_fee',
'recoveries','collection_recovery_fee','last_pymnt_d',
'last_pymnt_amnt']
data = data.loc[:,columnsToKeep]
data.shape
data.head()
이 데이터는 대출 이력
42
,
542
건과 피처
37
개(
42
,
542
,
37
)로 구성됐습니다.
[표
6
-
1
]은 데이터 미리보기 결과입니다.
표
6-1
대출 데이터의 처음 다섯 행
loan
_
amnt funded
_
amnt funded
_
amnt
_
inv term int
_
rate instsallment grade
0 5000
.
0 5000
.
0 4975
.
0 36
months 10
.
65
%
162
.
87 B
1 2500
.
0 2500
.
0 2500
.
0 60
months 15
.
27
%
59
.
83 C
2 2400
.
0 2400
.
0 2400
.
0 35
months 15
.
96
%