Fork me on GitHub
#data-science
<
2021-12-09
>
simongray15:12:54

Can someone point me to a list of the datatype keywords used in tech.ml.dataset?

Daniel Slutsky16:12:01

Hi @U4P4NREBY! It is recommended to bring such questions to the Clojurians Zulip chat. https://www.clojurians-zulip.org/

simongray09:12:37

Ok… guess I will install Zulip again then 😉

simongray15:12:53

I know what I functions I would use to parse the various columns with, but ->dataset wants me to write magic keywords keyed to columns names under :parser-fn…. trouble is, I have no idea what keywords to write. How do I know what magic keyword parses “HH:mm:ss” as a whatever the equivalent to a LocalTime is in tech.ml.dataset?

simongray15:12:04

basically what are the magic keywords I put into my :parser-fn map that would allow to parse longs, LocalDates, and LocalTimes?

simongray15:12:41

Do these appear correct?

(ds/->dataset {:parser-fn {:Birth      :local-date
                                   :Start-time :local-time
                                   :Date       :local-date
                                   :End-time   :local-time
                                   :Time       :int64
                                   :Age        :int64}})

simongray15:12:15

I’ve also noticed something called :packed-local-time . Do I need to use that instead?