Last active
May 10, 2020 18:00
-
-
Save c-l-nguyen/aa06c19121f007e853a356d52bdcbb68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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