on-internet
← Community

Ever Default Tagging - for Credit Risk Modelling- Python

Stack Overflow ·

I'm new to python and i faced some difficulty on writing this certain of codes. So to give a background, i want to do an ever-default tagging for credit risk modelling. 0 for non-default accounts and 1 for default accounts So the idea/concept is that throughout the date performance ( of 12 months), if the specific customer (ID) ever has one event of default (1) then the next performance after that event (for that customer) will be tagged as a default (1) even though the 'default tagging' is 0. so the input like this: ID Date Performance Default Tag AAA 2021-03-01 0 AAA 2021-04-01 0 AAA 2021-05

Comments

Sign in or sign up to comment and upvote.

No comments yet.