File tree 3 files changed +14
-1
lines changed
3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
+ # 7.030
3
+ * [ issue-408] ( https://github.com/techascent/tech.ml.dataset/issues/408 ) - xlsx files with numberic column names now load.
4
+ * dtype-next upgrade fixing a few issues, most notably [ issue-99] ( https://github.com/cnuernber/dtype-next/issues/99 ) .
5
+
2
6
# 7.029
3
7
* large parquet files now load - slowly as loading can't be parallelized - without holding onto more memory than they should.
4
8
Original file line number Diff line number Diff line change 90
90
colparser-compute-fn (reify Function
91
91
(apply [this col-idx]
92
92
(let [colname (col-idx->colname col-idx)
93
- colname (if (empty? colname)
93
+ colname (cond
94
+ (number? colname)
95
+ colname
96
+ (empty? colname)
94
97
(make-colname col-idx)
98
+ :else
95
99
(utils/remove-zero-width-spaces colname))
96
100
colname (if (and ensure-unique-column-names?
97
101
(get colname->idx colname))
Original file line number Diff line number Diff line change 92
92
(is (some? (ds/column ds " column::2" )))
93
93
(is (some? (ds/column ds " column::4" )))
94
94
(is (some? (ds/column ds " column-1::6" ))))))
95
+
96
+
97
+ (deftest number-colname
98
+ (let [ds (ds/->dataset " test/data/number_column.xlsx" )]
99
+ (is (= (first (ds/column-names ds)) 0.0 ))))
You can’t perform that action at this time.
0 commit comments