Liking cljdoc? Tell your friends :D

Clojask Types

Supported Types

string

int

double

date

datetime

string

The default type for all columns

Class: java.lang.String

Examples

(set-type dataframe "col-name" "string")

int

Most efficiently stores an integer

Class: java.lang.Integer

Examples

(set-type dataframe "col-name" "int")

double

Accepts floats and integers

Class: java.lang.Double

Examples

(set-type dataframe "col-name" "double")

date

Transform a date string (no time field)

Class: java.time.LocalDate (default format string: yyyy-MM-dd)

Examples

;; if the date looks like this 2020/11/12
(set-type dataframe "col-name" "date:yyyy/MM/dd")

datetime

Transform a date string (no time field)

Class: java.time.LocalDateTime (default format string: yyyy-MM-dd HH:mm:ss)

Examples

;; 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