Skip to content

Commit

Permalink
Release 7.046
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuernber committed Feb 28, 2025
1 parent 8e08a40 commit ab3e2dd
Show file tree
Hide file tree
Showing 38 changed files with 56 additions and 37 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
# 7.046
* dataset parsers return something that is not a dataset when the internal datasets have no columns.

# 7.045
* Bulk add-constant! method used for adding missing values.

Expand Down
2 changes: 1 addition & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
:exec-fn codox.main/-main
:exec-args {:group-id "techascent"
:artifact-id "tech.ml.dataset"
:version "7.045"
:version "7.046"
:name "TMD"
:description "A Clojure high performance data processing system"
:metadata {:doc/format :markdown}
Expand Down
2 changes: 1 addition & 1 deletion docs/000-getting-started.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/100-walkthrough.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/200-quick-reference.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/columns-readers-and-datatypes.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nippy-serialization-rocks.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/supported-datatypes.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.categorical.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.clipboard.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.column-filters.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.column.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.io.csv.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.io.datetime.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.io.string-row-parser.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.io.univocity.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.join.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.math.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.metamorph.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.modelling.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.print.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.reductions.apache-data-sketch.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.reductions.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.rolling.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.set.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.tensor.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.dataset.zip.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.libs.arrow.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.libs.clj-transit.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.libs.fastexcel.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.libs.guava.cache.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.libs.parquet.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.libs.poi.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.libs.tribuo.html

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/tech/v3/dataset/io/mapseq_colmap.clj
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@
init (hamf/range (.value row-idx)))))
IDeref
(deref [this]
(parse-context/parsers->dataset (assoc options :key-fn nil) parsers (.value row-idx)))
(if (.isEmpty ^Map parsers)
{:tech.v3.dataset/row-count (.value row-idx)
:tech.v3.dataset/missing :all}
(parse-context/parsers->dataset (assoc options :key-fn nil) parsers (.value row-idx))))
PClearable
(ds-clear [this]
(reduce (fn [_ p] (ds-proto/ds-clear p)) nil (.values ^Map parsers))
Expand Down
13 changes: 13 additions & 0 deletions test/tech/v3/dataset/parser_test.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(ns tech.v3.dataset.parser-test
(:require [tech.v3.dataset :as ds]
[tech.v3.dataset.protocols :as ds-proto]
[clojure.test :refer [deftest is]]))


(deftest all-missing-ds
(let [p (ds/dataset-parser)
_ (ds-proto/add-row p {})
ds @p]
(is (not (ds/dataset? ds)))
(is (= 1 (:tech.v3.dataset/row-count ds))
(= :all (:tech.v3.dataset/missing ds)))))

0 comments on commit ab3e2dd

Please sign in to comment.