Skip to content
Snippets Groups Projects
Commit 6d7f74af authored by Simon Belak's avatar Simon Belak
Browse files

Make zero and nil insights work with no data

parent e2b0c0d8
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@
(definsight nils
"Are there any nils in the data?"
[nil% field count]
(when (pos? nil%)
(when (some-> nil% pos?)
{:quality (if (< nil% (/ (Math/log (inc count))))
:some
:many)
......@@ -41,7 +41,7 @@
(definsight zeros
"Are there any 0s in the data?"
[zero% field count]
(when (pos? zero%)
(when (some-> zero% pos?)
{:quality (if (< zero% (/ (Math/log (inc count))))
:some
:many)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment