Skip to content

Instantly share code, notes, and snippets.

@wibowotangara
Created January 19, 2024 08:47
Show Gist options
  • Save wibowotangara/e3f91c83c6d968b17c72204befc9e09a to your computer and use it in GitHub Desktop.
Save wibowotangara/e3f91c83c6d968b17c72204befc9e09a to your computer and use it in GitHub Desktop.
conditions = [
(df['loan_status'].isin(['Fully Paid', 'Does not meet the credit policy. Status:Fully Paid'])),
(df['loan_status'].isin(['Charged Off', 'Late (31-120 days)', 'In Grace Period', 'Late (16-30 days)',
'Default', 'Does not meet the credit policy. Status:Charged Off']))
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment