

Tundra.L
Member
@Tundra.L
•
Joined October 2020
Forum Replies Created
Viewing 1 - 11 of 11 posts
-
-
thank you.
this is the qcut function I used:
cr_label=range(1,11)
Crdt_seg=pd.qcut(Loan[‘CR_Score’],q=10,labels=cr_label)
Loan=Loan.assign(credit_seg=Crdt_seg.values)
Loan.groupby(‘credit_seg’).agg({‘Client_ID’:’count’})
the output is little different about client numbers in each segments compare with yours. Is there anything wrong in my code?
Viewing 1 - 11 of 11 posts