Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2 . Tasks To begin, you need to define a main ( filename , filter _ value, type _ of _ card ) function that
Tasks
To begin, you need to define a mainfilename filtervalue, typeofcard function that will
read the dataset and store the transaction records in data and call the below functions to display appropriate
results.
Sample Input:
mainCreditCardProjectcsv 'Port Lincoln', 'ANZ'
Task : Data Analysis using NumPy Mark:
Answer the following NumPy related tasks for data analysis. These will require use of NumPy functions and
methods, matrix manipulations, vectorized computations, NumPy statistics, NumPy where function, etc. To
complete this task, write a function called taskdata filtervalue, typeofcard where
CITS
Computer Analysis
and Visualisation
Page of
data contains all records from the dataset and filtervalue is an area name and typeofcard is the
name of the card provider. The function should return a list containing values from the following questions.
Return all results rounded to two decimal points.
Input:
cosdist, var, median, corr, pca taskdata 'Port Lincoln 'ANZ
output:
i cosdist: Calculate cosine distance between normal and malicious transactions based on
IPvalidityscore.
Formula:
Output:
printcosdist
ii var: Filter transactions based on certain geographical area eg Port Lincoln and calculate and displ
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started