This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-07
Channels
- # aleph (10)
- # announcements (6)
- # architecture (23)
- # atom-editor (2)
- # beginners (35)
- # biff (5)
- # cljdoc (22)
- # clojure (14)
- # clojure-europe (18)
- # clojure-hungary (26)
- # clojure-nl (6)
- # clojure-uk (6)
- # clojurescript (39)
- # core-async (1)
- # data-science (14)
- # datascript (20)
- # datomic (4)
- # graalvm (18)
- # jobs-discuss (5)
- # keechma (1)
- # leiningen (4)
- # malli (3)
- # nbb (11)
- # nextjournal (2)
- # off-topic (1)
- # parinfer (1)
- # releases (1)
- # remote-jobs (3)
- # shadow-cljs (7)
- # sql (2)
- # xtdb (4)
I have csv where 1 coll is like this: "foo,bar,baz". Do you have a tip for unrolling this into rows? I see that io.string-row-parser
has the option to provide custom readers
There is a bunch of functions in tablecloth
to perform such operations. Looks like you need separate
https://scicloj.github.io/tablecloth/index.html#Separate
Also pivoting operations can be interesting for you: https://scicloj.github.io/tablecloth/index.html#Reshape
I want to encourage you to skim this documentation 🙂 It's full of snippets for probably most of the functionality covered by TC. Also includes partially translated documentation from dplyr
, tidyr
and data.table
(ds-reduce/aggregate
{:n-elems (ds-reduce/row-count)
:cos_id_count (ds-reduce/count-distinct :cos_id)
:genre_count (ds-reduce/count-distinct :genre)}
[my-ds])
reductions.clj: 144 tech.v3.dataset.reductions.SetConsumer/combine
Consumers.java: 39 tech.v3.datatype.Consumers$StagedConsumer/combineList
reductions.clj: 151 tech.v3.dataset.reductions/distinct/reify
impl.clj: 235 tech.v3.dataset.reductions.impl/aggregate-reducer/reify
any idea why this can happen?| :genre |
|-------------------------|
| Finance |
| Music & Audio |
| Photography |
| Video Players & Editors |
| Education |
| Photography |
| Puzzle |
| Tools |
| Casual |
| Photography |
| Art & Design |
| Casual |
| Lifestyle |
| Books & Reference |
| Productivity |
| Video Players & Editors |
| Video Players & Editors |
| Social |
| Video Players & Editors |
| Auto & Vehicles |
it is something about this data, when I take 10 of these it still works. Guess the combine path is different