Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
ca379e3
add Different category subheading
Supravisor Jan 27, 2026
3ffe11b
add number of records (double) button for different categories
Supravisor Jan 27, 2026
064dd88
add number of records (double) is in button
Supravisor Jan 27, 2026
9643444
add numberSelectionDoubleDiff function
Supravisor Jan 27, 2026
069c066
add group A input field
Supravisor Jan 27, 2026
9f1436d
add selectionGrouping select
Supravisor Jan 27, 2026
eb3b16d
add group B input field
Supravisor Jan 27, 2026
08be3bb
add numberSelectionDoubleDiffIsIn function
Supravisor Jan 27, 2026
5a33321
update message for new column
Supravisor Jan 27, 2026
ffad48a
messaging for other occurrences of new column
Supravisor Jan 27, 2026
4d5aa59
update message for variable
Supravisor Jan 29, 2026
9376c61
update message for column field
Supravisor Jan 29, 2026
8ab07a8
update message for axis
Supravisor Jan 29, 2026
92555f8
update message for number
Supravisor Jan 29, 2026
eb33cf1
update message for label
Supravisor Jan 29, 2026
6e5f2ef
update scatter x and y message
Supravisor Jan 29, 2026
3f2faed
update correlation and figure message
Supravisor Jan 29, 2026
ae09639
update message for boxplot catergories
Supravisor Jan 29, 2026
57218ec
update message for category
Supravisor Jan 29, 2026
8a8fa03
update message for other occurrences of column
Supravisor Jan 29, 2026
7636e4e
update message for boxplot axis
Supravisor Jan 29, 2026
df4a924
update message for scatter
Supravisor Jan 29, 2026
3d14358
update message for column A and B
Supravisor Jan 29, 2026
029be50
update message for modify
Supravisor Jan 29, 2026
0c6c6d1
update message for primary column
Supravisor Jan 29, 2026
3397b8a
update message for secondary column
Supravisor Jan 29, 2026
6733ce3
add message for group A
Supravisor Jan 29, 2026
ffe1186
add message for group B
Supravisor Jan 29, 2026
7141798
modify loadData variable
Supravisor Jan 29, 2026
b4d6f0d
update load data button
Supravisor Jan 29, 2026
8984bdb
fix message
Supravisor Jan 29, 2026
bbfd49d
remove textarea
Supravisor Jan 29, 2026
f67d337
update message for category
Supravisor Jan 29, 2026
f161e6c
update messages
Supravisor Jan 29, 2026
765e3f6
fix messages
Supravisor Jan 29, 2026
f72ce46
update message for percentage
Supravisor Jan 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 20 additions & 28 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h2>Load data</h2>
</p>

<p>
<input type="button" class="btn btn-success" value="load data" onclick="document.editor.textbox.value+='\n' + loadData.innerHTML" />
<input type="button" class="btn btn-success" value="load data" onclick="document.editor.textbox.value+=loadData" />
</p>

<hr />
Expand Down Expand Up @@ -136,11 +136,11 @@ <h2>Correlation between columns</h2>
</p>

<p>
<input type="button" class="btn btn-primary" value="corr" onclick="document.editor.textbox.value+=document.editor.variable.value === '' ? alert('Please enter a variable name in the \'Load data\' section.') || '' : document.editor.correlation.value === '' ? '\n' + document.editor.variable.value + '.' + this.value + '()' : '\n' + document.editor.correlation.value + ' = ' + document.editor.variable.value + '.' + this.value + '()'" />
<input type="button" class="btn btn-primary" value="figure" onclick="document.editor.textbox.value+=document.editor.figure.value === '' ? alert('Please enter a name in the figure field.') || '' : '\n' + document.editor.figure.value + ' = plt.' + this.value + '(figsize=(8,8))'" />
<input type="button" class="btn btn-primary" value="corr" onclick="document.editor.textbox.value+=document.editor.variable.value === '' ? alert('Please enter a variable name in the \'variable\' field, in the \'Load data\' section.') || '' : document.editor.correlation.value === '' ? '\n' + document.editor.variable.value + '.' + this.value + '()' : '\n' + document.editor.correlation.value + ' = ' + document.editor.variable.value + '.' + this.value + '()'" />
<input type="button" class="btn btn-primary" value="figure" onclick="document.editor.textbox.value+=document.editor.figure.value === '' ? alert('Please enter a name in the \'figure\' field, in the \'Correlation between columns\' section.') || '' : '\n' + document.editor.figure.value + ' = plt.' + this.value + '(figsize=(8,8))'" />
<input type="button" class="btn btn-primary" value="matshow" onclick="matshow(this.value)" />
<input type="button" class="btn btn-primary" value="x ticks" onclick="document.editor.textbox.value+=document.editor.correlation.value === '' ? alert('Please enter a name in the correlation field.') || '' : '\nplt.' + this.value.replace(' ', '') + '(range(len(' + document.editor.correlation.value + '.columns)), ' + document.editor.correlation.value + '.columns, rotation=\'vertical\')'" />
<input type="button" class="btn btn-primary" value="y ticks" onclick="document.editor.textbox.value+=document.editor.correlation.value === '' ? alert('Please enter a name in the correlation field.') || '' : '\nplt.' + this.value.replace(' ', '') + '(range(len(' + document.editor.correlation.value + '.columns)), ' + document.editor.correlation.value + '.columns)'" />
<input type="button" class="btn btn-primary" value="x ticks" onclick="document.editor.textbox.value+=document.editor.correlation.value === '' ? alert('Please enter a name in the \'figure\' field, in the \'Correlation between columns\' section.') || '' : '\nplt.' + this.value.replace(' ', '') + '(range(len(' + document.editor.correlation.value + '.columns)), ' + document.editor.correlation.value + '.columns, rotation=\'vertical\')'" />
<input type="button" class="btn btn-primary" value="y ticks" onclick="document.editor.textbox.value+=document.editor.correlation.value === '' ? alert('Please enter a name in the \'correlation\' field, in the \'Correlation between columns\' section.') || '' : '\nplt.' + this.value.replace(' ', '') + '(range(len(' + document.editor.correlation.value + '.columns)), ' + document.editor.correlation.value + '.columns)'" />
</p>

<p>
Expand All @@ -151,7 +151,7 @@ <h2>Correlation between columns</h2>

<p>
<input type="button" class="btn btn-primary" value="box" onclick="box(); analysis=this.value" />
<input type="button" class="btn btn-primary" value="boxplot cols" onclick="document.editor.textbox.value+=document.editor.boxplotCats.value === '' ? alert('Please enter some comma separated categories.') || '' : '\n' + this.value.replace(' ', '_') + ' = [' + document.editor.boxplotCats.value.split(',').map(el => `'${el.replace(' ', '')}'`).join().replaceAll(',', ', ') + ']'; document.editor.boxplotCats.value=''; analysis=this.value" />
<input type="button" class="btn btn-primary" value="boxplot cols" onclick="document.editor.textbox.value+=document.editor.boxplotCats.value === '' ? alert('Please enter some comma separated categories in the \'boxplot categories\' field, in the \'Correlation between columns\' section.') || '' : '\n' + this.value.replace(' ', '_') + ' = [' + document.editor.boxplotCats.value.split(',').map(el => `'${el.replace(' ', '')}'`).join().replaceAll(',', ', ') + ']'; document.editor.boxplotCats.value=''; analysis=this.value" />
<input class="btn" name="boxplotCats" id="plots" placeholder="boxplot catergories" size="12" type="textfield" />
</p>

Expand Down Expand Up @@ -235,28 +235,20 @@ <h3>Same category</h3>
<input type="button" class="btn btn-column" value="number of records (double)" onclick="numberSelectionDoubleSame();" />
</p>

<textarea id="load-data" class="hide">
conn = sqlite3.connect('data/sakila.db')

df = pd.read_sql('''
SELECT
rental.rental_id, rental.rental_date, rental.return_date,
customer.last_name AS customer_lastname,
store.store_id,
city.city AS rental_store_city,
film.title AS film_title, film.rental_duration AS film_rental_duration,
film.rental_rate AS film_rental_rate, film.replacement_cost AS film_replacement_cost,
film.rating AS film_rating
FROM rental
INNER JOIN customer ON rental.customer_id == customer.customer_id
INNER JOIN inventory ON rental.inventory_id == inventory.inventory_id
INNER JOIN store ON inventory.store_id == store.store_id
INNER JOIN address ON store.address_id == address.address_id
INNER JOIN city ON address.city_id == city.city_id
INNER JOIN film ON inventory.film_id == film.film_id
;
''', conn, index_col='rental_id', parse_dates=['rental_date', 'return_date'])
</textarea>
<p>
<h3>Different category</h3>
<input type="button" class="btn btn-column" value="number of records (double)" onclick="numberSelectionDoubleDiff();" />
<input type="button" class="btn btn-column" value="number of records (double) is in" onclick="numberSelectionDoubleDiffIsIn();" />
</p>

<p>
<input class="btn" name="groupA" id="groupA" placeholder="group A" size="10" type="textfield" />
<select id="selectionGrouping" name="selectionGrouping">
<option value="&">and</option>
<option value="|">or</option>
</select>
<input class="btn" name="groupB" id="groupB" placeholder="group B" size="10" type="textfield" />
</p>

</div>
</td>
Expand Down
Loading