From f15ecaff27d450627a7d9b8918dfc23d75811278 Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 29 Jan 2026 19:10:24 +1300 Subject: [PATCH 01/11] add date function --- script.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/script.js b/script.js index 02c5505..a844fa9 100644 --- a/script.js +++ b/script.js @@ -503,3 +503,13 @@ const numberSelectionDoubleDiffIsIn = () => { // Dates let dateColumn = document.getElementById("dateColumn"); + +const date = () => { + if (variable.value === "") { + return alert("Please enter a variable name in the 'Load data' section"); + } else if (dateColumn.value === "") { + return alert("Please enter a date in the 'date' field to the right, in the 'Date' section."); + } else { + document.editor.textbox.value+="\n" + variable.value + "['" + dateColumn.value + "'] = " + variable.value + "[['Year', 'Month', 'Day']].apply(lambda x: '{}-{}-{}'.format(x[0], x[1], x[2]), axis=1)"; + } +} From de5a35f44825d8f4cbef331ecdcb1c3deb725e5c Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 29 Jan 2026 19:12:28 +1300 Subject: [PATCH 02/11] add date difference button --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index d3b7899..6c83a33 100644 --- a/index.html +++ b/index.html @@ -255,6 +255,7 @@
+
From 4108618a12ec80dc7c4fb33e8825d2f96b39ae71 Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 29 Jan 2026 19:18:58 +1300 Subject: [PATCH 03/11] add dateDiff function --- script.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index a844fa9..32cb4ed 100644 --- a/script.js +++ b/script.js @@ -506,10 +506,22 @@ let dateColumn = document.getElementById("dateColumn"); const date = () => { if (variable.value === "") { - return alert("Please enter a variable name in the 'Load data' section"); + return alert("Please enter a variable name in the 'variable' field, in the 'Load data' section."); } else if (dateColumn.value === "") { - return alert("Please enter a date in the 'date' field to the right, in the 'Date' section."); + return alert("Please enter a date in the 'date column' field, in the 'Date' section."); } else { document.editor.textbox.value+="\n" + variable.value + "['" + dateColumn.value + "'] = " + variable.value + "[['Year', 'Month', 'Day']].apply(lambda x: '{}-{}-{}'.format(x[0], x[1], x[2]), axis=1)"; } } + +const dateDiff = () => { + if (variable.value === "") { + return alert("Please enter a variable name in the 'variable' field, in the 'Load data' section."); + } else if (dateNewColumn.value === '') { + return alert("Please enter a new column name in the 'new column' field, in the 'Date' section."); + } else if (dateColumn.value.split(",").length !== 2) { + return alert("Please enter two dates in the 'date column' field, in the 'Date' section."); + } else { + document.editor.textbox.value+="\n" + variable.value + "['" + dateNewColumn.value + "'] = " + variable.value + "[[" + dateColumn.value.split(',').map(el => `'${el.replace(' ', '')}'`) + "]].apply(lambda x: (x[1] - x[0]).days, axis=1)"; + } +} From 0e7e508413148b411c0ffe25cabd9b51c8ae8dde Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 29 Jan 2026 19:20:42 +1300 Subject: [PATCH 04/11] add parse date button --- index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.html b/index.html index 6c83a33..fad2b27 100644 --- a/index.html +++ b/index.html @@ -263,6 +263,10 @@
+ +
+ From 9197e16244dbb1c344aa58c7b6a9ee3869c2bc77 Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 29 Jan 2026 19:23:06 +1300 Subject: [PATCH 05/11] add parseDate function --- script.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/script.js b/script.js index 32cb4ed..dc264ab 100644 --- a/script.js +++ b/script.js @@ -525,3 +525,13 @@ const dateDiff = () => { document.editor.textbox.value+="\n" + variable.value + "['" + dateNewColumn.value + "'] = " + variable.value + "[[" + dateColumn.value.split(',').map(el => `'${el.replace(' ', '')}'`) + "]].apply(lambda x: (x[1] - x[0]).days, axis=1)"; } } + +const parseDate = () => { + if (variable.value === "") { + return alert("Please enter a variable name in the 'variable' field, in the 'Load data' section."); + } else if (dateColumn.value === "") { + return alert("Please enter a date in the 'date column' field, in the 'Date' section."); + } else { + document.editor.textbox.value+="\n" + variable.value + "['" + dateColumn.value + "'] = pd.to_datetime(" + variable.value + "['" + dateColumn.value + "'])"; + } +} From 062b91d568044d3dd4d886ef38567287023cad42 Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 29 Jan 2026 19:29:51 +1300 Subject: [PATCH 06/11] add line plot button --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index fad2b27..578d9f5 100644 --- a/index.html +++ b/index.html @@ -265,6 +265,7 @@+
From a65def656edbf80b574149f94f33ab434410db62 Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 29 Jan 2026 19:32:07 +1300 Subject: [PATCH 07/11] add selectionGrouping variable --- script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script.js b/script.js index dc264ab..79dd003 100644 --- a/script.js +++ b/script.js @@ -302,6 +302,8 @@ const columnWrangleModify = (stat) => { } // Selection and indexing +let selectionGrouping = document.getElementById("selectionGrouping"); + const individualSelection = () => { if (variable.value === "") { return alert("Please enter a variable name in the 'variable' field, in the 'Load data' section."); From b7e2bbe29809a9249e599fdd810572fd7ba0920f Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 29 Jan 2026 19:34:27 +1300 Subject: [PATCH 08/11] add lineDate function --- script.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/script.js b/script.js index 79dd003..56f5229 100644 --- a/script.js +++ b/script.js @@ -537,3 +537,13 @@ const parseDate = () => { document.editor.textbox.value+="\n" + variable.value + "['" + dateColumn.value + "'] = pd.to_datetime(" + variable.value + "['" + dateColumn.value + "'])"; } } + +const lineDate = () => { + if (variable.value === "") { + return alert("Please enter a variable name in the 'variable' field, in the 'Load data' section."); + } else if (dateColumn.value === '') { + return alert("Please enter a date in the 'date column' field, in the 'Date' section."); + } else { + document.editor.textbox.value+="\n" + variable.value + "['" + dateColumn.value + "'].value_counts().plot(kind='line', figsize=(14,6))"; + } +} From 6f9c4fc31d93cce5ffed2cd042ece9e2414e7802 Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 29 Jan 2026 19:38:19 +1300 Subject: [PATCH 09/11] add #selectionPercentage selector --- styles.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/styles.css b/styles.css index 92e3489..011f61c 100644 --- a/styles.css +++ b/styles.css @@ -115,3 +115,7 @@ input { input:not([type:"button"]) { border-color: black; } + +#selectionPercentage { + width: 50px; +} From 002b89959ff4412ca68dea453756323d277d4c0f Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 29 Jan 2026 19:40:49 +1300 Subject: [PATCH 10/11] white text for buttons --- styles.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/styles.css b/styles.css index 011f61c..f8809cb 100644 --- a/styles.css +++ b/styles.css @@ -95,6 +95,10 @@ td { border-color: chocolate; } +.btn-primary, .btn-success, .btn-data { + color: white; +} + .hide { display: none; } @@ -117,5 +121,5 @@ input:not([type:"button"]) { } #selectionPercentage { - width: 50px; + width: 75px; } From 06c0bde98575301c6923773403c25a68bf8405d1 Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 29 Jan 2026 19:42:50 +1300 Subject: [PATCH 11/11] modify #selectionPercentage --- styles.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/styles.css b/styles.css index f8809cb..fcd898b 100644 --- a/styles.css +++ b/styles.css @@ -121,5 +121,5 @@ input:not([type:"button"]) { } #selectionPercentage { - width: 75px; + width: 85px; }