This file contains hidden or 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 sys | |
import tableauserverclient as tsc | |
TABLEAU_CREDENTIALS = { | |
"server_url": "", | |
"username": "", | |
"password": "", | |
"site": "" | |
} |
This file contains hidden or 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
""" Determine product usage over the last 7 days """ | |
import sys | |
DATALIST = { | |
"android": [0,1,1,0,1,1,1], | |
"iphone": [0,1,1,0,1,1,0], | |
"web": [0,0,0,1,1,1,1] | |
} |
This file contains hidden or 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
""" Determine average duration for each step across all sessions """ | |
import sys | |
STREAM = [ | |
# session, step, timestamp | |
[1001, 1, 100000010], # duration = 11 | |
[1001, 2, 100000021], # duration = 12 | |
[1001, 3, 100000033], # duration = 13 | |
[1001, 4, 100000046], # duration = None (there's no next step) | |
[1002, 1, 100000010], # duration = 10 |
OlderNewer