When running a flow in Tableau Prep Builder that utilizes a Python script via TabPy, the script processing results may be incorrect.
This issue typically occurs under the following conditions:
Cause:
Tableau Prep does not guarantee the order of rows sent to TabPy. Particularly with large datasets, parallel processing may occur, causing data to be processed in a non-sequential order.
Modify the Python script to explicitly sort the data before performing order-dependent calculations. For example, sort by a unique identifier or timestamp column using df.sort_values() to ensure row order is preserved.
Note: The implementation and maintenance of custom Python scripts, including adding sorting logic, is outside the scope of Tableau Technical Support. Support is available for potential product defects and unmodified sample code only. If you require assistance with creating or maintaining custom scripts, please consider contacting your Account Executive regarding Tableau Professional Services.
Use Python scripts in your flow
005237277

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.