This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-05
Channels
- # announcements (17)
- # architecture (5)
- # babashka (12)
- # beginners (155)
- # calva (18)
- # chlorine-clover (2)
- # cider (57)
- # circleci (2)
- # clojure (151)
- # clojure-europe (4)
- # clojure-gamedev (20)
- # clojure-italy (18)
- # clojure-nl (4)
- # clojure-norway (3)
- # clojure-spec (8)
- # clojure-uk (95)
- # clojurescript (70)
- # core-async (68)
- # css (3)
- # data-science (13)
- # datascript (1)
- # datomic (16)
- # docker (2)
- # figwheel-main (41)
- # fulcro (34)
- # graalvm (6)
- # graphql (7)
- # jobs (14)
- # joker (2)
- # kaocha (1)
- # leiningen (2)
- # malli (3)
- # midje (2)
- # overtone (1)
- # reagent (8)
- # reitit (6)
- # ring-swagger (1)
- # schema (2)
- # shadow-cljs (6)
- # spacemacs (3)
- # specter (5)
- # timbre (3)
- # uncomplicate (1)
Hey there, I’m kinda having hard time using kixi.stats
core functions median
, summary
etc without transducers
and can some help me figure out - why?
...
(:require [kixi.stats.core :refer [median]])
(median (repeatedly 100 rand))
REPL:
1. Unhandled java.lang.ClassCastException
class clojure.lang.LazySeq cannot be cast to class
com.tdunning.math.stats.TDigest (clojure.lang.LazySeq and
com.tdunning.math.stats.TDigest are in unnamed module of loader 'app')
@chokheli I think you do need to use them with transducers. This works:
(transduce (map identity) kixi.stats.core/median (repeatedly 100 rand))
and if you really hate transducers this works (but is ugly)
(kixi.stats.core/median (reduce kixi.stats.core/median (kixi.stats.core/median) (repeatedly 100 rand)))
as you need an inital value and the completion step to get the median out rather than the t-digest
I'm hunting for a standard way or a library to select out of (e.g Oracle) into avro, and avro into another db (e.g. Sql Server).
posting here, b/c of the avro case. Maybe others would find a library like this useful? Or, are there other reliable intermediary formats that keep types around?
Spark SQL??
Maybe I'm pushing a social problem into tech, but I won't be asking for direct access to a database, only asking a client to use a libary to export a table from their database into this shared format.
It's a Spark module. Probably pretty heavy weight for what you are asking.