Skip to content

Instantly share code, notes, and snippets.

@Paulooh007
Last active March 8, 2020 06:41
Show Gist options
  • Save Paulooh007/25c653663af800ca5048c5d9de2ec6a2 to your computer and use it in GitHub Desktop.
Save Paulooh007/25c653663af800ca5048c5d9de2ec6a2 to your computer and use it in GitHub Desktop.
feat
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