Last active
March 8, 2020 06:41
-
-
Save Paulooh007/25c653663af800ca5048c5d9de2ec6a2 to your computer and use it in GitHub Desktop.
feat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
features = train[['current bank amount', 'last bank amount', | |
'time taken (seconds)', 'most recent bank amount', 'account type', | |
'age', 'occupation', 'credit card type', | |
'account source verification', 'transaction source method', | |
'account destination verification', 'dayofweek_name', 'is_weekend', | |
'hour','prev_tran','credit_or_debit','period_of_day']] | |
X = pd.get_dummies(columns=['account type', | |
'occupation', 'credit card type', 'credit_or_debit', | |
'account source verification', 'transaction source method', | |
'account destination verification', 'dayofweek_name','period_of_day'], data = features) | |
y = train['fradulent'] #target feature |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment