genmeblog
genmeblog
Ok, got the second case. It's in doc: > target columns - can be nil or :infer if separator returns map That means, that you have to somehow provide a...
Third version should be something like that: `#(zipmap [:x :y :z] (str/split % #"\s{1}"))`
I've just found out that second case can be done with `"\\s{1}"` (I call `re-pattern` under the hood)
``` (tc/separate-column DS :V3 (fn [^double v] {:int-part (int (quot v 1.0)) :fract-part (mod v 1.0)})) ```
Sometimes you may want to dynamically decide which column to fill.
Thanks! This will work in the next version: ``` (tc/dataset nil {:column-names [:a :b]}) ;; nil or any empty seq like `() or [] ;; => _unnamed [0 2]: ;;...
Let's discuss a little bit more what should be the default bahaviour: clonning or not clonning (that's the question :) ). Raised by @behrica (cc. @daslu ) https://clojurians.zulipchat.com/#narrow/stream/265544-sci-fu/topic/sci-fu.20session.2011.2E2
Yes! Of course. I will add them in the next release.
What do you think about making one function instead of four? Like `print-ds` with dispatching parameter
Yes, thank you!