Skip to content

Instantly share code, notes, and snippets.

@chamaeleon
chamaeleon / Tablecloth Use
Last active August 2, 2021 19:20
Basic use of the Clojure tablecloth library
(ns weather.core
(:require [tablecloth.api :as api])
(:gen-class))
(defonce weather
(api/dataset "https://vega.github.io/vega-lite/examples/data/seattle-weather.csv"
{:key-fn keyword}))
(defn avg [data]
(double (/ (reduce + data) (count data))))