Skip to content

Instantly share code, notes, and snippets.

@c-l-nguyen
Last active May 10, 2020 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c-l-nguyen/aa06c19121f007e853a356d52bdcbb68 to your computer and use it in GitHub Desktop.
Save c-l-nguyen/aa06c19121f007e853a356d52bdcbb68 to your computer and use it in GitHub Desktop.
import pandas as pd
import pantab
from tableauhyperapi import TableName
df = pd.read_csv("data/starter_pokemon_grass.csv")
# save DataFrame output to .hyper file
pantab.frame_to_hyper(df, "hyper/pokemon_public.hyper", table = "pokemon")
# save to schema other than public
pantab.frame_to_hyper(df, "hyper/pokemon_extract.hyper", table = TableName("Extract", "pokemon"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment