+ 1
How to use tableau with python?
3 Answers
+ 9
Best and simpkest is save output from python Pandas to csv and then load csv to tableau.
0
Nice post. Thanks for sharing. Attend The Best Tableau Certification Training In Pune From Sevenmentor. Practical Tableau Training Sessions With Assured Placement Support From Experienced Faculty.
Visit : https://www.sevenmentor.com/tableau-training-in-pune.php
0
How to Use Tableau with Python (Step-by-Step)
Step 1: Install TabPy (Tableau Python Server)
TabPy lets Tableau run Python scripts.
Command to install:
pip install tabpy
tep 2: Start TabPy Server
Once installed, run:
tabpy
This starts the server at http://localhost:9004/
Step 3: Connect Tableau to TabPy
Open Tableau â Go to Help > Settings and Performance > Manage External Service Connection
Choose Service: TabPy/External API
Enter:
Host: localhost
Port: 9004
Click Test Connection â Then click OK.
Step 4: Use Python in Calculated Fields
In Tableau, you can now use SCRIPT functions:
Example:
python
CopyEdit
SCRIPT_REAL(
"return [i**2 for i in _arg1]",
SUM([Sales])
)
This runs Python code that squares each sales value.