Liking cljdoc? Tell your friends :D

tech.ml.protocols.dataset


columnclj

(column dataset column-name)
source

column-namesclj

(column-names dataset)
source

PColumnarDatasetcljprotocol

metadataclj

(metadata dataset)

remove-columnclj

(remove-column dataset col-name)

Failes quietly

Failes quietly

supported-column-statsclj

(supported-column-stats dataset)

Return the set of natively supported stats for the dataset. This must be at least #{:mean :variance :median :skew}.

Return the set of natively supported stats for the dataset.  This must be at least
#{:mean :variance :median :skew}.

selectclj

(select dataset colname-seq index-seq)

Reorder/trim dataset according to this sequence of indexes. Returns a new dataset. colname-seq - either keyword :all or list of column names with no duplicates. index-seq - either keyword :all or list of indexes. May contain duplicates.

Reorder/trim dataset according to this sequence of indexes.  Returns a new dataset.
colname-seq - either keyword :all or list of column names with no duplicates.
index-seq - either keyword :all or list of indexes.  May contain duplicates.

add-columnclj

(add-column dataset column)

Error if columns exists

Error if columns exists

update-columnclj

(update-column dataset col-name update-fn)

Update a column returning a new dataset. update-fn is a column->column transformation. Error if column does not exist.

Update a column returning a new dataset.  update-fn is a column->column transformation.
Error if column does not exist.

add-or-update-columnclj

(add-or-update-column dataset col-name col-data)

If column exists, replace. Else append new column.

If column exists, replace.  Else append new column.

maybe-columnclj

(maybe-column dataset column-name)

Return either column if exists or nil.

Return either column if exists or nil.

columnsclj

(columns dataset)

set-metadataclj

(set-metadata dataset meta-map)

dataset-nameclj

(dataset-name dataset)

set-dataset-nameclj

(set-dataset-name dataset name)

from-prototypeclj

(from-prototype dataset table-name column-seq)

Create a new dataset that is the same type as this one but with a potentially different table name and column sequence. Take care that the columns are all of the correct type.

Create a new dataset that is the same type as this one but with a potentially
different table name and column sequence.  Take care that the columns are all of
the correct type.

select-columns-by-indexclj

(select-columns-by-index dataset num-seq)

Select a subset of columns by index.

Select a subset of columns by index.
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close