Just like R, TabPy makes use of the script functions in Tableau. I want to mention a few use cases from the Tableau community that are suitable to reproduce at home.
Using Python functions
Random and random normal
Many calculations are easily accessible via the calculated fields, others via the table calculations – and if there aren't, many smart people within the Tableau community come up with a workaround. One of those examples is a random number. Zen Master Joshua Milligan came up with the following: https://vizpainter.com/random-numbers-even-with-extracts/.
But, it is also possible to do so with the Python integration. We will look at two exercises.