Fork me on GitHub

I'd like to move some of my python data cleaning code into Clojure. For example things like Is there any library you can recommend that has data cleaning functions in it?

πŸ‘ 1
Anthony Khong08:10:21

I believe the go-to data wrangling libraries nowadays are the ones based on See for instance I actually wrote to move my data cleaning code from Python to Clojure. The is based on an existing Pandas cookbook. However, I would not recommend Geni if you have no experience with Spark.

πŸ‘ 1

Thanks so much - I'll check it out!


@U6T7M9DBR You might want to join #data-science if you’re not already in there!


Sorry am I not here? πŸ˜„


I am confused!


@U6T7M9DBR You are πŸ™‚ My guess is @U050CT4HR thought we were someone else.


There is also a zulip data-science stream which is very active.


Thought this thread was happening in a different channel. Sorry! :face_palm::skin-tone-2:


You want to go here: And for TMD/TC development stuff you want this: Clj datascience stuff is on Zulip - Slack is a deadzone


I'm trying to port some python code into clojure, is there anything I can use to translate a call to


mostly interesting to me is the whiskers config


I'd also be fine with rolling out the quartiles calculations manually but any starting pointer would be nice


@skuro I'd suggest taking a look at Oz ( (and vega-lite, more generally; Oz is among other things a tool for using vega-lite from Clojure).


Vega-Lite is a really wonderful (interactive) data visualization framework, where you specify the visualization as a data structure, so very compatible with the Clojure philosophy (code as data, data as code and all that; Which is also makes it possible to create specs in any language, and pass them on to a web page for rendering).


If Oz doesn't fit your taste for whatever reason, there are a bunch of other Clojure tools using Vega and Vega-Lite, including hanami, saite, notespace, clerk, etc. So whichever tool you use, you kind of can't go wrong, since you can easily take the specifications and move them around between tools.


alright, thanks


looking at the code I'm translating, it actually doesn't do any visualization per se, it's just using the default boxplot settings for outliers filtering by removing anything that stands outside of the boxplot whiskers


so chances are Oz / Vega-Lite won't be helping me that much in this specific instance


although they're definitely up in my read-more-as-soon-as-you-have-time list :-)

πŸ™‚ 1

Good to hear πŸ™‚


Ah; I see. I think there might be some functions in the apache commons math standard lib that do this. There's quite a bit there actually.


There's also the fastmath clojure lib, and a few others.


beautiful, by skimming at the docs that's a lot that I can work with I guess


Sure thing! FWIW, I vastly underappreciated for quite a while just how much is baked into the apache commons, but it's now often the first place I look since it's always right at hand as part of the standard lib. One of the really nice things about running on the JVM!


Obviously, the APIs aren't always super idiomatic, so it's nice to have the Clojure libs as well.


thanks, I'll keep that in mind going forward. and Java paid my bills for a decade or so, I'm fine with some interop here and there πŸ™‚