aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_services
diff options
context:
space:
mode:
authorSonja Galovic <galovicsonja@gmail.com>2022-03-29 23:01:29 +0200
committerSonja Galovic <galovicsonja@gmail.com>2022-03-29 23:01:29 +0200
commit4921fd48c358c11aa5d16d08bea4d0ab3f41272a (patch)
treeb7965f8520be59a0bbbf4a78d6bb90e31d6508ce /frontend/src/app/_services
parent9a708de97086c898ccb2a585617dcc5a64dcaf64 (diff)
Add-model - popunjavanje nedostajucih vrednosti (medijana/srednja vrednost/rucni unos). Prikaz broja null vrednosti za izabrane kolone. Izlazna kolona dodata medju kolone za popunjavanje.
Diffstat (limited to 'frontend/src/app/_services')
-rw-r--r--frontend/src/app/_services/csv-parse.service.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/src/app/_services/csv-parse.service.ts b/frontend/src/app/_services/csv-parse.service.ts
index d53f504e..b9b761a0 100644
--- a/frontend/src/app/_services/csv-parse.service.ts
+++ b/frontend/src/app/_services/csv-parse.service.ts
@@ -45,7 +45,8 @@ export class CsvParseService {
strMatchedValue = arrMatches[3];
}
- arrData[arrData.length - 1].push(strMatchedValue);
+ if (strMatchedValue.length > 0)
+ arrData[arrData.length - 1].push(strMatchedValue);
}
return (arrData);