From f93651c8775dfde9ba873be8203e4bc080f488e4 Mon Sep 17 00:00:00 2001 From: "tom.mansion" Date: Tue, 20 Aug 2024 12:00:02 +0200 Subject: [PATCH] Added percentage of null values in columns We can now filter null values Added support for null values --- .../debiai/dataAnalysis/common/Column.vue | 40 +++++++++++++++++++ .../dataFilters/filterTypes/Values.vue | 30 +++++++------- .../widgets/Statistics/Statistics.vue | 17 ++++++-- frontend/src/services/statistics/data.js | 1 + 4 files changed, 70 insertions(+), 18 deletions(-) diff --git a/frontend/src/components/debiai/dataAnalysis/common/Column.vue b/frontend/src/components/debiai/dataAnalysis/common/Column.vue index 7533b4f14..05e245917 100644 --- a/frontend/src/components/debiai/dataAnalysis/common/Column.vue +++ b/frontend/src/components/debiai/dataAnalysis/common/Column.vue @@ -69,6 +69,19 @@ Click to set column as the main color" {{ column.typeText }} + +
+
+ {{ Math.ceil((column.nbNullValues / column.originalValues.length) * 100) }}% +
+ diff --git a/frontend/src/components/debiai/dataAnalysis/dataFilters/filterTypes/Values.vue b/frontend/src/components/debiai/dataAnalysis/dataFilters/filterTypes/Values.vue index a8325dbed..530d03778 100644 --- a/frontend/src/components/debiai/dataAnalysis/dataFilters/filterTypes/Values.vue +++ b/frontend/src/components/debiai/dataAnalysis/dataFilters/filterTypes/Values.vue @@ -41,7 +41,7 @@