Fork me on GitHub
#data-science
<
2020-06-11
>
metasoarous20:06:30

Semantic CSV also has a transducers namespace with transducing versions of all the various processing functions

niveauverleih15:06:10

When I load the namespace I get an error: Unhandled java.io.FileNotFoundException Could not locate semantic_csv__init.class, semantic_csv.clj or semantic_csv.cljc on classpath. Please check that namespaces with dashes use underscores in the Clojure file name. Any idea?

practicalli-john15:06:09

@UQLUWPRQD one reason for this error could be the dependency has not been added to the project configuration file (e.g. project.clj or deps.edn). Or the REPL hasnt been restarted since the that dependency was added.

niveauverleih15:06:33

That was it. I had forgotten to add the core namespace when requiring semantic-csv.

metasoarous19:06:59

Yeah, unfortunately, the tool I was using for documentation became buggy and stopped working on the project, and so I've been looking for replacements. There are cljdoc API docs, but a lot of the documentation was written as inline comments, which were then stripped out by marginalia to produce documentation alongside the code. Which all worked pretty well for this project, till it stopped working at all. So sorry that the docs aren't where they should be, but if you look directly at the source code on github, the inline comments should be very comprehensive

niveauverleih19:06:39

I had found the comments already.

niveauverleih19:06:31

When I don't use transducers, the library works fine. I'm now brushing up my transducers knowledge, then I'll try the transducers variant of the library. In the beginning I was a little confused because in the examples you sometimes use read-csv an sometimes parse-csv which come from 2 different libraries.

metasoarous22:06:28

Yeah, was just trying to show that you can use both actually

metasoarous05:06:06

(But I can also see how that would be confusing; Would be worth pointing it out more explicitly to make it less confusing)