d3js: Create a table using data from a CSV file.
d3js: Create an HTML table using d3.js
d3js: Create an HTML table using d3.js and JSON
d3js: Scatterplot using CSV data.
d3js: Create text input box.
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
""" 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 |
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
""" 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] | |
} |
d3js: Create divs using d3.js
d3js: Create an HTML select box using d3.js and create a paragraph referencing the selection.
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 sys | |
import tableauserverclient as tsc | |
TABLEAU_CREDENTIALS = { | |
"server_url": "", | |
"username": "", | |
"password": "", | |
"site": "" | |
} |
NewerOlder