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

bookChallenge: Flag Suspicious Transactions

Taak

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.

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 3. Hoofdstuk 3
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

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

Veeg om het menu te tonen

Taak

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.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 3. Hoofdstuk 3
single

single

some-alt