Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Analyze Loan Portfolio Risk | Risk Assessment and Loan Analytics
Python for Bankers

bookChallenge: Analyze Loan Portfolio Risk

Tehtävä

Swipe to start coding

Given a DataFrame containing loan data with columns for principal, interest_rate, and risk_score, identify all loans with a risk_score above 0.7, calculate their total principal, and print the average interest rate for these high-risk loans.

  • Filter the DataFrame to include only rows where the risk_score is greater than 0.7.
  • Calculate the sum of the principal values for the filtered loans.
  • Compute the mean of the interest_rate values for the filtered loans.
  • Print the total principal and average interest rate.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 3
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

Suggested prompts:

Can you explain this in simpler terms?

What are the next steps I should take?

Can you provide an example?

close

bookChallenge: Analyze Loan Portfolio Risk

Pyyhkäise näyttääksesi valikon

Tehtävä

Swipe to start coding

Given a DataFrame containing loan data with columns for principal, interest_rate, and risk_score, identify all loans with a risk_score above 0.7, calculate their total principal, and print the average interest rate for these high-risk loans.

  • Filter the DataFrame to include only rows where the risk_score is greater than 0.7.
  • Calculate the sum of the principal values for the filtered loans.
  • Compute the mean of the interest_rate values for the filtered loans.
  • Print the total principal and average interest rate.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 3
single

single

some-alt