Yes, TabPy is the solution that Tableau came up with. TabPy is the integration of Tableau with Python libraries which form an API, that allows a user to evaluate a Python code from within a Tableau workbook.
This make the whole process powerful, as it combines leading data visualization tool with a programming language that has numerous libraries.
If you are aiming to learn Tableau, then for sure check out the Tableau course from Intellipaat which provides 7 guided projects to work upon after 30 hrs of online instructor-led training.
Also, take a look at our YouTube video on Tableau for Data Science to help you get started.