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
Python for Bankers

bookChallenge: Flag Suspicious Transactions

Opgave

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

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 3. Kapitel 3
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

Suggested prompts:

Can you explain this in simpler terms?

What are the next steps I should take?

Can you provide an example?

close

bookChallenge: Flag Suspicious Transactions

Stryg for at vise menuen

Opgave

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 desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 3. Kapitel 3
single

single

some-alt