![]() ![]() Case 2: Using Tableau Prep & TabPy to make API requests The script should now run successfully to process your dataset and clean it the way you defined it in your script. py file here and select the function name you defined. This should establish the connection as you see here. Select your server as localhost and Port as 9004 (what you got in the command prompt window) and hit Sign in. This will open up the Settings pane at the bottom where you will select TabPy Server and add the localhost connection by going to Help (at the top) > Settings & Performance> Manage Analytics Extensions Connection. TabPy Server Connection Details (Image by Author) It is in a format that needs to be changed to a more ingestible format for Tableau. Notice the Stands table which gives the list of which stands can be accessed by which gates at an airport terminal. My intention here is not to solve the challenge but to use an excerpt from this flow and show how the data manipulation could be achieved either with in-built features or using the Script feature. ![]() You can also download the source files, Tableau Prep flows, and Python scripts here in case you would like to follow along. I would strongly encourage you to go check this out if you want to challenge yourself with the best ways to prep data (& compare with the provided solutions). Case 1: Using Tableau Prep Features & Python Script interchangeably:įor this example, I have selected a dataset from the Week 48 Challenge. Tableau Prep allows you to handle these changes independently and transition into a cleaned output file for analysis. However, when you are dealing with data where fields might change (courtesy: collaborative worksheets) followed by a pivoting of rows to columns/ unpivoting of columns to rows, it becomes prone to breaking when the source file gets refreshed. For all the data prep nerds out there, I wanted to walk you through a couple of examples of when Scripts on Tableau Prep can prove to be extremely handy.įor most of the cases, Joins & Blends, Level of Detail (LOD) Calculations, and limited Data manipulation that Tableau Desktop allows might suffice. Does that sound like you? That was definitely me a couple of months ago until I discovered the power of scripts: a feature that was released just last year. While Tableau Prep has been around for quite some time, not every Tableau user can vouch for using it extensively.
0 Comments
Leave a Reply. |