Learn practical skills, build real-world projects, and advance your career
!pip install jovian --upgrade --quiet
!pip install plotly nltk wordcloud eli5 --upgrade --quiet
!pip install opendatasets --upgrade --quiet
!pip install numpy pandas matplotlib seaborn --quiet
!pip install jovian opendatasets xgboost catboost graphviz lightgbm scikit-learn xgboost lightgbm --upgrade --quiet

Download datasets

import opendatasets as od

dataset_url = 'https://www.kaggle.com/c/santander-customer-transaction-prediction/rules'
od.download(dataset_url, force=True)
Please provide your Kaggle credentials to download this dataset. Learn more: http://bit.ly/kaggle-creds Your Kaggle username: usernamedatascience Your Kaggle Key: ········ Downloading santander-customer-transaction-prediction.zip to ./santander-customer-transaction-prediction
100%|██████████| 250M/250M [00:03<00:00, 68.9MB/s]
Extracting archive ./santander-customer-transaction-prediction/santander-customer-transaction-prediction.zip to ./santander-customer-transaction-prediction
!ls
santander-customer-transaction-prediction work Santander_Customer_Transaction_Prediction-xgboost-baseline.ipynb
import numpy as np 
import pandas as pd 
import gc
import seaborn as sns
import matplotlib.pyplot as plt
import warnings
warnings.filterwarnings('ignore')
from sklearn.model_selection import StratifiedKFold
from sklearn.metrics import roc_auc_score, f1_score, cohen_kappa_score, precision_score, recall_score, confusion_matrix
import xgboost as xgb