Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Flag Suspicious Transactions | Automation and Fraud Detection in Banking
Practice
Projects
Quizzes & Challenges
Quizer
Challenges
/
Python for Bankers
Seksjon 3. Kapittel 3
single

single

bookChallenge: Flag Suspicious Transactions

Sveip for å vise menyen

Oppgave

Swipe to start coding

Given a DataFrame of transactions, your task is to flag suspicious transactions based on the amount column.

  • Calculate the mean of the amount column.
  • Calculate the standard deviation of the amount column.
  • Flag any transaction as suspicious if its amount is more than 2 standard deviations away from the mean.
  • Add a new column called suspicious to the DataFrame, where each value is True if the transaction is suspicious and False otherwise.
  • Return the updated DataFrame.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 3
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

some-alt