techascent / tech.ml.dataset

A Clojure high performance data processing system
Eclipse Public License 1.0
660 stars 33 forks source link

select-columns returns `nil` on empty dataset #225

Closed genmeblog closed 3 years ago

genmeblog commented 3 years ago
(ds/select-columns (ds/->dataset {}) [])
;; => nil

In above case I would expect to get just empty dataset.

original issue: https://github.com/scicloj/tablecloth/issues/36

cnuernber commented 3 years ago

deal. Good issue -- null punning here is not a great idea. Potentially a (dataset ds) function that will return nil on empty dataset analogous to seq.