How to achieve this in pytohn:
import pandas as pd
import numpy as np
from sklearn.tree import DecisionTreeClassifier
from sklearn.model_selection import cross_val_score
import xgboost as xgb
import eli5
from collections import Counter
import gc
Firstly we import libraries: pandas, numpy-for data analysis and preparation. From library sklearn we import AI model and needed operations on it. Rest of the libraries are helpers.
Here is description of python libraries used for AI:
https://scikit-learn.org/stable/
And here is great webinarium in Polish of this domain: