string
int
double
date
datetime
The default type for all columns
Class: java.lang.String
(set-type dataframe "col-name" "string")
Most efficiently stores an integer
Class: java.lang.Integer
(set-type dataframe "col-name" "int")
Accepts floats and integers
Class: java.lang.Double
(set-type dataframe "col-name" "double")
Transform a date string (no time field)
Class: java.time.LocalDate
(default format string: yyyy-MM-dd
)
;; if the date looks like this 2020/11/12
(set-type dataframe "col-name" "date:yyyy/MM/dd")
Transform a date string (no time field)
Class: java.time.LocalDateTime
(default format string: yyyy-MM-dd HH:mm:ss
)
;; if the date looks like this 2020/11/12 12:12:36
(set-type dataframe "col-name" "datetime:yyyy/MM/dd HH:mm:ss")
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close