Build Tableau Data Extract (.tde) from Pandas DataFrame using Tableau SDK
- Python 2.7 (Python 3 not supported by Tableau SDK)
- Tableau SDK
import pytde
import pandas as pd
df = pd.read_csv("dataset.csv")
pytde.to_tde(df,"extract.tde")
- Python3.5 works OK, with Tableau-SDK-PYTHON-64Bit-10-3-13.tar
- Use zip in inner loop, speed up 6 times.
- Use apply to to take place of outter loop(iterrows), speed up 1.5 time.