Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Flag Suspicious Transactions | Automation and Fraud Detection in Banking
Python for Bankers

bookChallenge: Flag Suspicious Transactions

Tâche

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.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 3
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

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

Glissez pour afficher le menu

Tâche

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.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 3
single

single

some-alt