On a new sheet select analysis > create calculated field or simply right click in the data pane. Enter the following code:
SCRIPT_INT(" import pandas as pd import pycaret.classification
nb = pycaret.classification.load_model('C:/Users/owner/Desktop/nb_direct')
X_pred = pd.DataFrame({'recency':_arg1, 'history_segment':_arg2, 'history':_arg3, 'mens':_arg4, 'womens':_arg5,'zip_code':_arg6, 'newbie':_arg7, 'channel':_arg8, 'segment':_arg9, 'DM_category':_arg10})
pred = pycaret.classification.predict_model(nb, X_pred) return pred['Label'].tolist()
", SUM([recency]), ATTR([history_segment]), SUM([history]), SUM([mens]), SUM([womens]), ATTR([zip_code]), SUM([newbie]), ATTR([channel]), ATTR([segment]), SUM([DM_category]) )