Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Flag Suspicious Transactions | Automation and Fraud Detection in Banking
Python for Bankers

bookChallenge: Flag Suspicious Transactions

Завдання

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.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 3
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

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

Свайпніть щоб показати меню

Завдання

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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 3
single

single

some-alt