-
Book Overview & Buying
-
Table Of Contents
Mastering Tableau 2026 - Fifth Edition
By :
At times, your script will just be too long to be used in a calculated field, or you'll need upfront training on a different dataset or an extended dataset rather than the one you have in Tableau. In this case, we can use TabPy in a slightly different way. You can write a model outside of Tableau—in Python—and deploy it to Tableau such that you can call it from within the desktop.
In the upcoming example, we will build a recommender system that predicts the likelihood of a Pima woman having diabetes when inputting 7 parameters (age, BMI, pregnancies, blood pressure, glucose, insulin, and skin thickness). The dataset is from a 1988 study by J.W. Smith, J.E. Everhart, W.C. Dickson, W.C. Knowler, and R.S. Johannes, accessible at the following link: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2245318/.
We will begin with the code in the Jupyter Notebook or your preferred Integrated Development Environment (IDE). Please follow along...