Skip to content

Commit

Permalink
Fixes #86
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuernber committed May 30, 2020
1 parent f389625 commit 494104c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/tech/ml/dataset/join.clj
Expand Up @@ -37,7 +37,7 @@
(keyword? orign-name) (keyword new-name)
(symbol? orign-name) (symbol new-name)
:else
(keyword new-name)))
new-name))


(defn- colname->lhs-rhs-colnames
Expand Down
12 changes: 12 additions & 0 deletions test/tech/ml/dataset/join_test.clj
Expand Up @@ -162,6 +162,18 @@
(count (distinct (ds/column-names jt)))))))


(deftest join-tuple-cname
(let [DS (ds/->dataset [{:a 11 [:a :b] 2}])
lj (ds/left-join :a DS DS)
rj (ds/right-join :a DS DS)
ljt (ds/left-join [[:a :b][:a :b]] DS DS)]
;;no nil column names
(is (every? identity (ds/column-names lj)))
(is (every? identity (ds/column-names rj)))
(is (every? identity (ds/column-names ljt)))
))



(comment

Expand Down

0 comments on commit 494104c

Please sign in to comment.