data-science

Data science, data analysis, and machine learning in Clojure https://scicloj.github.io/pages/chat_streams/ for additional discussions
2020-06-11T20:26:30.316900Z

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

niveauverleih 2020-06-14T07:32:08.320100Z

I will definitely try it out. I'm just slow because I don't have a lot of spare time and when i play around with clojure it's on my smart phone. In the readme of semantic-csv there is a link to the introductory blog post which is outdated. As is: http://www.metasoarous.com/presenting-semantic-csv/ To be: http://metasoarous.com/blog/presenting-semantic-csv Sorry for not creating a PR.

niveauverleih 2020-06-14T15:30:10.320500Z

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-john 2020-06-14T15:38:09.320700Z

@nick.romer 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.

niveauverleih 2020-06-14T15:42:33.320900Z

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

2020-06-17T19:01:59.328400Z

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

niveauverleih 2020-06-17T19:06:39.328600Z

I had found the comments already.

niveauverleih 2020-06-17T19:11:31.328800Z

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.

2020-06-17T22:48:28.329100Z

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

2020-06-18T05:04:06.329300Z

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