Liking cljdoc? Tell your friends :D
Clojure only.

tablecloth.pipeline

Linear pipeline operations.

Linear pipeline operations.
raw docstring

*clj

(* target-col columns-selector)

Applies the operation tablecloth.column.api.operators/* to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/* to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

+clj

(+ target-col columns-selector)

Applies the operation tablecloth.column.api.operators/+ to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/+ to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

-clj

(- target-col columns-selector)

Applies the operation tablecloth.column.api.operators/- to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/- to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

->arrayclj

(->array colname)
(->array colname datatype)

Convert numerical column(s) to java array

Convert numerical column(s) to java array
sourceraw docstring

/clj

(/ target-col columns-selector)

Applies the operation tablecloth.column.api.operators// to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators// to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

<clj

(< target-col columns-selector)

Applies the operation tablecloth.column.api.operators/< to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 3 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/< to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 3 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

<=clj

(<= target-col columns-selector)

Applies the operation tablecloth.column.api.operators/<= to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 3 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/<= to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 3 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

>clj

(> target-col columns-selector)

Applies the operation tablecloth.column.api.operators/> to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 3 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/> to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 3 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

>=clj

(>= target-col columns-selector)

Applies the operation tablecloth.column.api.operators/>= to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 3 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/>= to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 3 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

absclj

(abs target-col columns-selector)
(abs target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/abs to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/abs to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

acosclj

(acos target-col columns-selector)
(acos target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/acos to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/acos to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

add-columnclj

(add-column column-name column)
(add-column column-name column size-strategy)

Add or update (modify) column under column-name.

column can be sequence of values or generator function (which gets ds as input).

  • ds - a dataset
  • column-name - if it's existing column name, column will be replaced
  • column - can be column (from other dataset), sequence, single value or function (taking a dataset). Too big columns are always trimmed. Too small are cycled or extended with missing values (according to size-strategy argument)
  • size-strategy (optional) - when new column is shorter than dataset row count, following strategies are applied:
    • :cycle - repeat data
    • :na - append missing values
    • :strict - (default) throws an exception when sizes mismatch
Add or update (modify) column under `column-name`.

`column` can be sequence of values or generator function (which gets `ds` as input).

* `ds` - a dataset
* `column-name` - if it's existing column name, column will be replaced
* `column` - can be column (from other dataset), sequence, single value or function (taking a dataset). Too big columns are always trimmed. Too small are cycled or extended with missing values (according to `size-strategy` argument)
* `size-strategy` (optional) - when new column is shorter than dataset row count, following strategies are applied:
  - `:cycle` - repeat data
  - `:na` - append missing values
  - `:strict` - (default) throws an exception when sizes mismatch
sourceraw docstring

add-columnsclj

(add-columns columns-map)
(add-columns columns-map size-strategy)

Add or updade (modify) columns defined in columns-map (mapping: name -> column)

Add or updade (modify) columns defined in `columns-map` (mapping: name -> column) 
sourceraw docstring

add-or-replace-columnclj

(add-or-replace-column column-name column)
(add-or-replace-column column-name column size-strategy)
source

add-or-replace-columnsclj

(add-or-replace-columns columns-map)
(add-or-replace-columns columns-map size-strategy)
source

aggregateclj

(aggregate aggregator)
(aggregate aggregator options)

Aggregate dataset by providing:

  • aggregation function
  • map with column names and functions
  • sequence of aggregation functions

Aggregation functions can return:

  • single value
  • seq of values
  • map of values with column names
Aggregate dataset by providing:

- aggregation function
- map with column names and functions
- sequence of aggregation functions

Aggregation functions can return:
- single value
- seq of values
- map of values with column names
sourceraw docstring

aggregate-columnsclj

(aggregate-columns columns-aggregators)
(aggregate-columns columns-selector column-aggregators)
(aggregate-columns columns-selector column-aggregators options)

Aggregates each column separately

Aggregates each column separately
sourceraw docstring

andclj

(and target-col columns-selector)

Applies the operation tablecloth.column.api.operators/and to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 2 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/and to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 2 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

anti-joinclj

(anti-join ds-right columns-selector)
(anti-join ds-right columns-selector options)
source

appendclj

(append & args)

Concats columns of several datasets

Concats columns of several datasets
sourceraw docstring

array-column->columnsclj

(array-column->columns src-column)
(array-column->columns src-column opts)

Converts a column of type java array into several columns, one for each element of the array of all rows. The source column is dropped afterwards. The function assumes that arrays in all rows have same type and length and are numeric.

ds Datset to operate on. src-column The (array) column to convert opts can contain: prefix newly created column will get prefix before column number

Converts a column of type java array into several columns,
one for each element of the array of all rows. The source column is dropped afterwards.
The function assumes that arrays in all rows have same type and length and are numeric.

`ds` Datset to operate on.
`src-column` The (array) column to convert
`opts` can contain:
  `prefix` newly created column will get prefix before column number
sourceraw docstring

as-regular-datasetclj

(as-regular-dataset)

Remove grouping tag

Remove grouping tag
sourceraw docstring

asinclj

(asin target-col columns-selector)
(asin target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/asin to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/asin to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

asof-joinclj

(asof-join ds-right columns-selector)
(asof-join ds-right columns-selector options)
source

atanclj

(atan target-col columns-selector)
(atan target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/atan to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/atan to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

atan2clj

(atan2 target-col columns-selector)

Applies the operation tablecloth.column.api.operators/atan2 to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/atan2 to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

bindclj

(bind & args)
source

bit-andclj

(bit-and target-col columns-selector)

Applies the operation tablecloth.column.api.operators/bit-and to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/bit-and to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

bit-and-notclj

(bit-and-not target-col columns-selector)

Applies the operation tablecloth.column.api.operators/bit-and-not to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/bit-and-not to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

bit-clearclj

(bit-clear target-col columns-selector)

Applies the operation tablecloth.column.api.operators/bit-clear to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/bit-clear to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

bit-flipclj

(bit-flip target-col columns-selector)

Applies the operation tablecloth.column.api.operators/bit-flip to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/bit-flip to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

bit-notclj

(bit-not target-col columns-selector)
(bit-not target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/bit-not to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/bit-not to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

bit-orclj

(bit-or target-col columns-selector)

Applies the operation tablecloth.column.api.operators/bit-or to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/bit-or to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

bit-setclj

(bit-set target-col columns-selector)

Applies the operation tablecloth.column.api.operators/bit-set to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/bit-set to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

bit-shift-leftclj

(bit-shift-left target-col columns-selector)

Applies the operation tablecloth.column.api.operators/bit-shift-left to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/bit-shift-left to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

bit-shift-rightclj

(bit-shift-right target-col columns-selector)

Applies the operation tablecloth.column.api.operators/bit-shift-right to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/bit-shift-right to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

bit-xorclj

(bit-xor target-col columns-selector)

Applies the operation tablecloth.column.api.operators/bit-xor to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/bit-xor to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

build-pipelined-functioncljmacro

(build-pipelined-function f m)
source

by-rankclj

(by-rank columns-selector rank-predicate)
(by-rank columns-selector rank-predicate options)

Select rows using rank on a column, ties are resolved using :dense method.

See R docs. Rank uses 0 based indexing.

Possible :ties strategies: :average, :first, :last, :random, :min, :max, :dense. :dense is the same as in data.table::frank from R

:desc? set to true (default) order descending before calculating rank

Select rows using `rank` on a column, ties are resolved using `:dense` method.

See [R docs](https://www.rdocumentation.org/packages/base/versions/3.6.1/topics/rank).
Rank uses 0 based indexing.

Possible `:ties` strategies: `:average`, `:first`, `:last`, `:random`, `:min`, `:max`, `:dense`.
`:dense` is the same as in `data.table::frank` from R

`:desc?` set to true (default) order descending before calculating rank
sourceraw docstring

cbrtclj

(cbrt target-col columns-selector)
(cbrt target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/cbrt to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/cbrt to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

ceilclj

(ceil target-col columns-selector)
(ceil target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/ceil to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/ceil to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

cloneclj

(clone)

Clone an object. Can clone anything convertible to a reader.

Clone an object.  Can clone anything convertible to a reader.
sourceraw docstring

columnclj

(column colname)
source

column-countclj

(column-count)
source

column-namesclj

(column-names)
(column-names columns-selector)
(column-names columns-selector meta-field)

Returns column names, given a selector. Columns-selector can be one of the following:

  • :all keyword - selects all columns
  • column name - for single column
  • sequence of column names - for collection of columns
  • regex - to apply pattern on column names or datatype
  • filter predicate - to filter column names or datatype
  • type namespaced keyword for specific datatype or group of datatypes

Column name can be anything.

column-names function returns names according to columns-selector and optional meta-field. meta-field is one of the following:

  • :name (default) - to operate on column names
  • :datatype - to operated on column types
  • :all - if you want to process all metadata

Datatype groups are:

  • :type/numerical - any numerical type
  • :type/float - floating point number (:float32 and :float64)
  • :type/integer - any integer
  • :type/datetime - any datetime type

If qualified keyword starts with :!type, complement set is used.

Returns column names, given a selector.
  Columns-selector can be one of the following:

  * :all keyword - selects all columns
  * column name - for single column
  * sequence of column names - for collection of columns
  * regex - to apply pattern on column names or datatype
  * filter predicate - to filter column names or datatype
  * type namespaced keyword for specific datatype or group of datatypes

  Column name can be anything.

column-names function returns names according to columns-selector
  and optional meta-field. meta-field is one of the following:

  * `:name` (default) - to operate on column names
  * `:datatype` - to operated on column types
  * `:all` - if you want to process all metadata

  Datatype groups are:

  * `:type/numerical` - any numerical type
  * `:type/float` - floating point number (:float32 and :float64)
  * `:type/integer` - any integer
  * `:type/datetime` - any datetime type

  If qualified keyword starts with :!type, complement set is used.


  
sourceraw docstring

columnsclj

(columns)
(columns result-type)

Returns columns of dataset. Result type can be any of:

  • :as-map
  • :as-double-arrays
  • :as-seqs
Returns columns of dataset. Result type can be any of:
* `:as-map`
* `:as-double-arrays`
* `:as-seqs`
sourceraw docstring

columns->array-columnclj

(columns->array-column column-selector new-column)

Converts several columns to a single column of type array. The src columns are dropped afterwards.

ds Dataset to operate on. column-selector anything supported by select-columns new-column new column to create

Converts several columns to a single column of type array.
 The src columns are dropped afterwards.

`ds` Dataset to operate on.
`column-selector` anything supported by [[select-columns]]
`new-column` new column to create
sourceraw docstring

completeclj

(complete columns-selector & args)

TidyR complete.

Fills a dataset with all possible combinations of selected columns. When a given combination doesn't exist, missing values are created.

TidyR complete.

Fills a dataset with all possible combinations of selected columns. When a given combination doesn't exist, missing values are created.
sourceraw docstring

concatclj

(concat & args)

Joins rows from other datasets

Joins rows from other datasets
sourceraw docstring

concat-copyingclj

(concat-copying & args)

Joins rows from other datasets via a copy of data

Joins rows from other datasets via a copy of data
sourceraw docstring

convert-typesclj

(convert-types coltype-map-or-columns-selector)
(convert-types columns-selector new-types)

Convert type of the column to the other type.

Convert type of the column to the other type.
sourceraw docstring

cosclj

(cos target-col columns-selector)
(cos target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/cos to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/cos to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

coshclj

(cosh target-col columns-selector)
(cosh target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/cosh to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/cosh to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

cross-joinclj

(cross-join ds-right)
(cross-join ds-right columns-selector)
(cross-join ds-right columns-selector options)

Cross product from selected columns

Cross product from selected columns
sourceraw docstring

crosstabclj

(crosstab row-selector col-selector)
(crosstab row-selector col-selector options)

Cross tabulation of two sets of columns.

Creates grouped dataset by [row-selector, col-selector] pairs and calls aggregation on each group.

Options:

  • pivot? - create pivot table or just flat structure (default: true)
  • replace-missing? - replace missing values? (default: true)
  • missing-value - a missing value (default: 0)
  • aggregator - aggregating function (default: row-count)
  • marginal-rows, marginal-cols - adds row and/or cols, it's a sum if true. Can be a custom fn.
Cross tabulation of two sets of columns.

Creates grouped dataset by [row-selector, col-selector] pairs and calls aggregation on each group.

Options:

* pivot? - create pivot table or just flat structure (default: true)
* replace-missing? - replace missing values? (default: true)
* missing-value - a missing value (default: 0)
* aggregator - aggregating function (default: row-count)
* marginal-rows, marginal-cols - adds row and/or cols, it's a sum if true. Can be a custom fn.
sourceraw docstring

cummaxclj

(cummax target-col columns-selector)
(cummax target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/cummax to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/cummax to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

cumminclj

(cummin target-col columns-selector)
(cummin target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/cummin to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/cummin to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

cumprodclj

(cumprod target-col columns-selector)
(cumprod target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/cumprod to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/cumprod to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

cumsumclj

(cumsum target-col columns-selector)
(cumsum target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/cumsum to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/cumsum to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

dataset->strclj

(dataset->str)
(dataset->str options)

Convert a dataset to a string. Prints a single line header and then calls dataset-data->str.

For options documentation see dataset-data->str.

Convert a dataset to a string.  Prints a single line header and then calls
dataset-data->str.

For options documentation see dataset-data->str.
sourceraw docstring

dataset-nameclj

(dataset-name)
source

dataset?clj

(dataset?)

Is ds a dataset type?

Is `ds` a `dataset` type?
sourceraw docstring

differenceclj

(difference ds-right)
(difference ds-right options)
source

distanceclj

(distance columns-selector)

Applies the operation tablecloth.column.api.operators/distance to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 2 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/distance to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 2 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

distance-squaredclj

(distance-squared columns-selector)

Applies the operation tablecloth.column.api.operators/distance-squared to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 2 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/distance-squared to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 2 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

dot-productclj

(dot-product columns-selector)

Applies the operation tablecloth.column.api.operators/dot-product to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 2 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/dot-product to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 2 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

dropclj

(drop columns-selector rows-selector)

Drop columns and rows.

Drop columns and rows.
sourceraw docstring

drop-columnsclj

(drop-columns)
(drop-columns columns-selector)
(drop-columns columns-selector meta-field)

Drop columns by (returns dataset):

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Drop columns by (returns dataset):

- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

drop-missingclj

(drop-missing)
(drop-missing columns-selector)

Drop rows with missing values

columns-selector selects columns to look at missing values

Drop rows with missing values

`columns-selector` selects columns to look at missing values
sourceraw docstring

drop-rowsclj

(drop-rows)
(drop-rows rows-selector)
(drop-rows rows-selector options)

Drop rows using:

  • row id
  • seq of row ids
  • seq of true/false
  • fn with predicate
Drop rows using:

- row id
- seq of row ids
- seq of true/false
- fn with predicate
sourceraw docstring

empty-ds?clj

(empty-ds?)
source

eqclj

(eq target-col columns-selector)

Applies the operation tablecloth.column.api.operators/eq to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 2 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/eq to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 2 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

even?clj

(even? target-col columns-selector)
(even? target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/even? to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/even? to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

expclj

(exp target-col columns-selector)
(exp target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/exp to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/exp to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

expandclj

(expand columns-selector & args)

TidyR expand.

Creates all possible combinations of selected columns.

TidyR expand.

Creates all possible combinations of selected columns.
sourceraw docstring

expm1clj

(expm1 target-col columns-selector)
(expm1 target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/expm1 to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/expm1 to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

fill-range-replaceclj

(fill-range-replace colname max-span)
(fill-range-replace colname max-span missing-strategy)
(fill-range-replace colname max-span missing-strategy missing-value)

Fill missing up with lacking values. Accepts

  • dataset
  • column name
  • expected step (max-span, milliseconds in case of datetime column)
  • (optional) missing-strategy - how to replace missing, default :down (set to nil if none)
  • (optional) missing-value - optional value for replace missing
Fill missing up with lacking values. Accepts
* dataset
* column name
* expected step (max-span, milliseconds in case of datetime column)
* (optional) missing-strategy - how to replace missing, default :down (set to nil if none)
* (optional) missing-value - optional value for replace missing
sourceraw docstring

finite?clj

(finite? target-col columns-selector)
(finite? target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/finite? to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/finite? to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

firstclj

(first)

First row

First row
sourceraw docstring

floorclj

(floor target-col columns-selector)
(floor target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/floor to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/floor to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

fold-byclj

(fold-by columns-selector)
(fold-by columns-selector folding-function)

Group-by and pack columns into vector - the output data set has a row for each unique combination of the provided columns while each remaining column has its valu(es) collected into a vector, similar to how clojure.core/group-by works. See https://scicloj.github.io/tablecloth/index.html#Fold-by

Group-by and pack columns into vector - the output data set has a row for each unique combination
of the provided columns while each remaining column has its valu(es) collected into a vector, similar
to how clojure.core/group-by works.
See https://scicloj.github.io/tablecloth/index.html#Fold-by
sourceraw docstring

full-joinclj

(full-join ds-right columns-selector)
(full-join ds-right columns-selector options)

Join keeping all rows

Join keeping all rows
sourceraw docstring

get-entryclj

(get-entry column row)

Returns a single value from given column and row

Returns a single value from given column and row
sourceraw docstring

get-significandclj

(get-significand target-col columns-selector)
(get-significand target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/get-significand to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/get-significand to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

group-byclj

(group-by grouping-selector)
(group-by grouping-selector options)

Group dataset by:

  • column name
  • list of columns
  • map of keys and row indexes
  • function getting map of values

Options are:

  • select-keys - when grouping is done by function, you can limit fields to a select-keys seq.
  • result-type - return results as dataset (:as-dataset, default) or as map of datasets (:as-map) or as map of row indexes (:as-indexes) or as sequence of (sub)datasets
  • other parameters which are passed to dataset fn

When dataset is returned, meta contains :grouped? set to true. Columns in dataset:

  • name - group name
  • group-id - id of the group (int)
  • data - group as dataset
Group dataset by:

- column name
- list of columns
- map of keys and row indexes
- function getting map of values

Options are:

- select-keys - when grouping is done by function, you can limit fields to a `select-keys` seq.
- result-type - return results as dataset (`:as-dataset`, default) or as map of datasets (`:as-map`) or as map of row indexes (`:as-indexes`) or as sequence of (sub)datasets
- other parameters which are passed to `dataset` fn

When dataset is returned, meta contains `:grouped?` set to true. Columns in dataset:

- name - group name
- group-id - id of the group (int)
- data - group as dataset
sourceraw docstring

grouped?clj

(grouped?)

Is dataset represents grouped dataset (result of group-by)?

Is `dataset` represents grouped dataset (result of `group-by`)?
sourceraw docstring

groups->mapclj

(groups->map)

Convert grouped dataset to the map of groups

Convert grouped dataset to the map of groups
sourceraw docstring

groups->seqclj

(groups->seq)

Convert grouped dataset to seq of the groups

Convert grouped dataset to seq of the groups
sourceraw docstring

has-column?clj

(has-column? column-name)
source

(head)
(head n)

First n rows (default 5)

First n rows (default 5)
sourceraw docstring

hypotclj

(hypot target-col columns-selector)

Applies the operation tablecloth.column.api.operators/hypot to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/hypot to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

identityclj

(identity target-col columns-selector)
(identity target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/identity to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/identity to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

ieee-remainderclj

(ieee-remainder target-col columns-selector)

Applies the operation tablecloth.column.api.operators/ieee-remainder to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/ieee-remainder to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

infinite?clj

(infinite? target-col columns-selector)
(infinite? target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/infinite? to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/infinite? to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

infoclj

(info)
(info result-type)

Returns a statistcial information about the columns of a dataset. result-type can be :descriptive or :columns

Returns a statistcial information about the columns of a dataset.
`result-type ` can be :descriptive or :columns
sourceraw docstring

inner-joinclj

(inner-join ds-right columns-selector)
(inner-join ds-right columns-selector options)
source

intersectclj

(intersect ds-right)
(intersect ds-right options)
source

join-columnsclj

(join-columns target-column columns-selector)
(join-columns target-column columns-selector conf)

Join clumns of dataset. Accepts: dataset column selector (as in select-columns) options :separator (default "-") :drop-columns? - whether to drop source columns or not (default true) :result-type :map - packs data into map :seq - packs data into sequence :string - join strings with separator (default) or custom function which gets row as a vector :missing-subst - substitution for missing value

Join clumns of dataset. Accepts:
dataset
column selector (as in select-columns)
options
`:separator` (default "-")
`:drop-columns?` - whether to drop source columns or not (default true)
`:result-type`
   `:map` - packs data into map
   `:seq` - packs data into sequence
   `:string` - join strings with separator (default)
   or custom function which gets row as a vector
`:missing-subst` - substitution for missing value
sourceraw docstring

kurtosisclj

(kurtosis columns-selector)
(kurtosis columns-selector options)

Applies the operation tablecloth.column.api.operators/kurtosis to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/kurtosis to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

lastclj

(last)

Last row

Last row
sourceraw docstring

left-joinclj

(left-join ds-right columns-selector)
(left-join ds-right columns-selector options)
source

logclj

(log target-col columns-selector)
(log target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/log to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/log to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

log10clj

(log10 target-col columns-selector)
(log10 target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/log10 to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/log10 to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

log1pclj

(log1p target-col columns-selector)
(log1p target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/log1p to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/log1p to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

logisticclj

(logistic target-col columns-selector)
(logistic target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/logistic to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/logistic to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

magnitudeclj

(magnitude columns-selector)

Applies the operation tablecloth.column.api.operators/magnitude to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/magnitude to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

magnitude-squaredclj

(magnitude-squared columns-selector)

Applies the operation tablecloth.column.api.operators/magnitude-squared to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/magnitude-squared to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

map-columnsclj

(map-columns column-name map-fn)
(map-columns column-name columns-selector map-fn)
(map-columns column-name new-type columns-selector map-fn)

Map over rows using a map function. The arity should match the columns selected.

Map over rows using a map function. The arity should match the columns selected.
sourceraw docstring

map-rowsclj

(map-rows map-fn)
(map-rows map-fn options)

Map a function across the rows of the dataset producing a new dataset that is merged back into the original potentially replacing existing columns.

Map a function across the rows of the dataset producing a new dataset that is merged back into the original potentially replacing existing columns.
sourceraw docstring

mark-as-groupclj

(mark-as-group)

Add grouping tag

Add grouping tag
sourceraw docstring

mathematical-integer?clj

(mathematical-integer? target-col columns-selector)
(mathematical-integer? target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/mathematical-integer? to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/mathematical-integer? to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

maxclj

(max target-col columns-selector)

Applies the operation tablecloth.column.api.operators/max to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/max to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

meanclj

(mean columns-selector)
(mean columns-selector options)

Applies the operation tablecloth.column.api.operators/mean to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/mean to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

mean-fastclj

(mean-fast columns-selector)

Applies the operation tablecloth.column.api.operators/mean-fast to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/mean-fast to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

medianclj

(median columns-selector)
(median columns-selector options)

Applies the operation tablecloth.column.api.operators/median to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/median to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

minclj

(min target-col columns-selector)

Applies the operation tablecloth.column.api.operators/min to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/min to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

nan?clj

(nan? target-col columns-selector)
(nan? target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/nan? to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/nan? to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

neg?clj

(neg? target-col columns-selector)
(neg? target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/neg? to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/neg? to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

next-downclj

(next-down target-col columns-selector)
(next-down target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/next-down to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/next-down to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

next-upclj

(next-up target-col columns-selector)
(next-up target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/next-up to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/next-up to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

normalizeclj

(normalize target-col columns-selector)

Applies the operation tablecloth.column.api.operators/normalize to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/normalize to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

notclj

(not target-col columns-selector)
(not target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/not to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/not to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

not-eqclj

(not-eq target-col columns-selector)

Applies the operation tablecloth.column.api.operators/not-eq to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 2 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/not-eq to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 2 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

odd?clj

(odd? target-col columns-selector)
(odd? target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/odd? to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/odd? to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

orclj

(or target-col columns-selector)

Applies the operation tablecloth.column.api.operators/or to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 2 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/or to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 2 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

order-byclj

(order-by columns-or-fn)
(order-by columns-or-fn comparators)
(order-by columns-or-fn comparators options)

Order dataset by:

  • column name
  • columns (as sequence of names)
  • key-fn
  • sequence of columns / key-fn Additionally you can ask the order by:
  • :asc
  • :desc
  • custom comparator function
Order dataset by:
- column name
- columns (as sequence of names)
- key-fn
- sequence of columns / key-fn
Additionally you can ask the order by:
- :asc
- :desc
- custom comparator function
sourceraw docstring

percentilesclj

(percentiles target-col columns-selector percentages)
(percentiles target-col columns-selector percentages options)

Applies the operation tablecloth.column.api.operators/percentiles to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/percentiles to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

pivot->longerclj

(pivot->longer)
(pivot->longer columns-selector)
(pivot->longer columns-selector options)

tidyr pivot_longer api

`tidyr` pivot_longer api
sourceraw docstring

pivot->widerclj

(pivot->wider columns-selector value-columns)
(pivot->wider columns-selector value-columns options)

Converts columns to rows. Arguments:

  • dataset

  • columns selector

  • options: :target-columns - names of the columns created or columns pattern (see below) (default: :$column) :value-column-name - name of the column for values (default: :$value) :splitter - string, regular expression or function which splits source column names into data :drop-missing? - remove rows with missing? (default: true) :datatypes - map of target columns data types :coerce-to-number - try to convert extracted values to numbers if possible (default: true)

  • target-columns - can be:

    • column name - source columns names are put there as a data
    • column names as seqence - source columns names after split are put separately into :target-columns as data
    • pattern - is a sequence of names, where some of the names are nil. nil is replaced by a name taken from splitter and such column is used for values.
Converts columns to rows. Arguments:
* dataset
* columns selector
* options:
  `:target-columns` - names of the columns created or columns pattern (see below) (default: :$column)
  `:value-column-name` - name of the column for values (default: :$value)
  `:splitter` - string, regular expression or function which splits source column names into data
  `:drop-missing?` - remove rows with missing? (default: true)
  `:datatypes` - map of target columns data types
  `:coerce-to-number` - try to convert extracted values to numbers if possible (default: true)

* target-columns - can be:

  * column name - source columns names are put there as a data
  * column names as seqence - source columns names after split are put separately into :target-columns as data
  * pattern - is a sequence of names, where some of the names are nil. nil is replaced by a name taken from splitter and such column is used for values.
sourceraw docstring

pos?clj

(pos? target-col columns-selector)
(pos? target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/pos? to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/pos? to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

powclj

(pow target-col columns-selector)

Applies the operation tablecloth.column.api.operators/pow to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/pow to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

(print-dataset)
(print-dataset options)

Prints dataset into console. For options see tech.v3.dataset.print/dataset-data->str

Prints dataset into console. For options see
tech.v3.dataset.print/dataset-data->str
sourceraw docstring

process-all-api-symbolscljmacro

(process-all-api-symbols)
source

process-group-dataclj

(process-group-data f)
(process-group-data f parallel?)

Internal: The passed-in function is applied on all groups

Internal: The passed-in function is applied on all groups
sourceraw docstring

quartile-1clj

(quartile-1 columns-selector)
(quartile-1 columns-selector options)

Applies the operation tablecloth.column.api.operators/quartile-1 to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/quartile-1 to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

quartile-3clj

(quartile-3 columns-selector)
(quartile-3 columns-selector options)

Applies the operation tablecloth.column.api.operators/quartile-3 to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/quartile-3 to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

quotclj

(quot target-col columns-selector)

Applies the operation tablecloth.column.api.operators/quot to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/quot to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

rand-nthclj

(rand-nth)
(rand-nth options)

Returns single random row

Returns single random row
sourceraw docstring

randomclj

(random)
(random n)
(random n options)

Returns (n) random rows with repetition

Returns (n) random rows with repetition
sourceraw docstring

read-nippyclj

(read-nippy)
source

reduce-*clj

(reduce-* columns-selector)

Applies the operation tablecloth.column.api.operators/reduce-* to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/reduce-* to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

reduce-+clj

(reduce-+ columns-selector)

Applies the operation tablecloth.column.api.operators/reduce-+ to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/reduce-+ to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

reduce-maxclj

(reduce-max columns-selector)

Applies the operation tablecloth.column.api.operators/reduce-max to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/reduce-max to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

reduce-minclj

(reduce-min columns-selector)

Applies the operation tablecloth.column.api.operators/reduce-min to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/reduce-min to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

remclj

(rem target-col columns-selector)

Applies the operation tablecloth.column.api.operators/rem to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/rem to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

rename-columnsclj

(rename-columns columns-mapping)
(rename-columns columns-selector columns-map-fn)

Rename columns with provided old -> new name map

Rename columns with provided old -> new name map
sourceraw docstring

reorder-columnsclj

(reorder-columns columns-selector & args)

Reorder columns using column selector(s). When column names are incomplete, the missing will be attached at the end.

Reorder columns using column selector(s). When column names are incomplete, the missing will be attached at the end.
sourceraw docstring

replace-missingclj

(replace-missing)
(replace-missing strategy)
(replace-missing columns-selector strategy)
(replace-missing columns-selector strategy value)

Replaces missing values. Accepts

  • dataset
  • column selector, default: :all
  • strategy, default: :nearest
  • value (optional)
  • single value
  • sequence of values (cycled)
  • function, applied on column(s) with stripped missings

Strategies are:

:value - replace with given value :up - copy values up :down - copy values down :updown - copy values up and then down for missing values at the end :downup - copy values down and then up for missing values at the beginning :mid or :nearest - copy values around known values :midpoint - use average value from previous and next non-missing :lerp - trying to lineary approximate values, works for numbers and datetime, otherwise applies :nearest. For numbers always results in float datatype.

Replaces missing values. Accepts

* dataset
* column selector, default: :all
* strategy, default: :nearest
* value (optional)
* single value
* sequence of values (cycled)
* function, applied on column(s) with stripped missings

Strategies are:

`:value` - replace with given value
`:up` - copy values up
`:down` - copy values down
`:updown` - copy values up and then down for missing values at the end
`:downup` - copy values down and then up for missing values at the beginning
`:mid` or `:nearest` - copy values around known values
`:midpoint` - use average value from previous and next non-missing
`:lerp` - trying to lineary approximate values, works for numbers and datetime, otherwise applies :nearest. For numbers always results in float datatype.
sourceraw docstring

right-joinclj

(right-join ds-right columns-selector)
(right-join ds-right columns-selector options)
source

rintclj

(rint target-col columns-selector)
(rint target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/rint to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/rint to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

roundclj

(round target-col columns-selector)
(round target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/round to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/round to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

row-countclj

(row-count)
source

rowsclj

(rows)
(rows result-type)
(rows result-type options)

Returns rows of dataset. Result type can be any of:

  • :as-maps - maps
  • :as-double-arrays - double arrays
  • :as-seqs - reader (sequence, default)
  • :as-vecs - vectors

If you want to elide nils in maps set :nil-missing? option to false (default: true). Another option - :copying? - when true row values are copied on read (default: false).

Returns rows of dataset. Result type can be any of:
* `:as-maps` - maps
* `:as-double-arrays` - double arrays
* `:as-seqs` - reader (sequence, default)
* `:as-vecs` - vectors

If you want to elide nils in maps set `:nil-missing?` option to false (default: `true`).
Another option - `:copying?` - when true row values are copied on read (default: `false`).
sourceraw docstring

selectclj

(select columns-selector rows-selector)

Select columns and rows.

Select columns and rows.
sourceraw docstring

select-columnsclj

(select-columns)
(select-columns columns-selector)
(select-columns columns-selector meta-field)

Select columns by (returns dataset):

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Select columns by (returns dataset):

- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

select-missingclj

(select-missing)
(select-missing columns-selector)

Select rows with missing values

columns-selector selects columns to look at missing values

Select rows with missing values

`columns-selector` selects columns to look at missing values
sourceraw docstring

select-rowsclj

(select-rows)
(select-rows rows-selector)
(select-rows rows-selector options)

Select rows using:

  • row id
  • seq of row ids
  • seq of true/false
  • fn with predicate
Select rows using:

- row id
- seq of row ids
- seq of true/false
- fn with predicate
sourceraw docstring

semi-joinclj

(semi-join ds-right columns-selector)
(semi-join ds-right columns-selector options)
source

separate-columnclj

(separate-column column)
(separate-column column separator)
(separate-column column target-columns separator)
(separate-column column target-columns separator conf)
source

set-dataset-nameclj

(set-dataset-name ds-name)
source

shapeclj

(shape)

Returns shape of the dataset [rows, cols]

Returns shape of the dataset [rows, cols]
sourceraw docstring

shiftclj

(shift target-col columns-selector n)

Applies the operation tablecloth.column.api.operators/shift to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/shift to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

shuffleclj

(shuffle)
(shuffle options)

Shuffle dataset (with seed)

Shuffle dataset (with seed)
sourceraw docstring

signumclj

(signum target-col columns-selector)
(signum target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/signum to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/signum to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

sinclj

(sin target-col columns-selector)
(sin target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/sin to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/sin to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

sinhclj

(sinh target-col columns-selector)
(sinh target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/sinh to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/sinh to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

skewclj

(skew columns-selector)
(skew columns-selector options)

Applies the operation tablecloth.column.api.operators/skew to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/skew to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

splitclj

(split)
(split split-type)
(split split-type options)

Split given dataset into 2 or more (holdout) splits

As the result two new columns are added:

  • :$split-name - with subgroup name
  • :$split-id - fold id/repetition id

split-type can be one of the following:

  • :kfold - k-fold strategy, :k defines number of folds (defaults to 5), produces k splits
  • :bootstrap - :ratio defines ratio of observations put into result (defaults to 1.0), produces 1 split
  • :holdout - split into two parts with given ratio (defaults to 2/3), produces 1 split
  • :loo - leave one out, produces the same number of splits as number of observations

:holdout can accept also probabilites or ratios and can split to more than 2 subdatasets

Additionally you can provide:

  • :seed - for random number generator
  • :repeats - repeat procedure :repeats times
  • :partition-selector - same as in group-by for stratified splitting to reflect dataset structure in splits.
  • :split-names names of subdatasets different than default, ie. [:train :test :split-2 ...]
  • :split-col-name - a column where name of split is stored, either :train or :test values (default: :$split-name)
  • :split-id-col-name - a column where id of the train/test pair is stored (default: :$split-id)
  • :ratio - specify a list of split ratios for :holdout. Need to have same size then :split-names (example: [0.2 0.2 0.6])

Rows are shuffled before splitting.

In case of grouped dataset each group is processed separately.

See more

Split given dataset into 2 or more (holdout) splits

As the result two new columns are added:

* `:$split-name` - with subgroup name
* `:$split-id` - fold id/repetition id

`split-type` can be one of the following:

* `:kfold` - k-fold strategy, `:k` defines number of folds (defaults to `5`), produces `k` splits
* `:bootstrap` - `:ratio` defines ratio of observations put into result (defaults to `1.0`), produces `1` split
* `:holdout` - split into two parts with given ratio (defaults to `2/3`), produces `1` split
* `:loo` - leave one out, produces the same number of splits as number of observations

`:holdout` can accept also probabilites or ratios and can split to more than 2 subdatasets

Additionally you can provide:

* `:seed` - for random number generator
* `:repeats` - repeat procedure `:repeats` times
* `:partition-selector` - same as in `group-by` for stratified splitting to reflect dataset structure in splits.
* `:split-names` names of subdatasets different than default, ie. `[:train :test :split-2 ...]`
* `:split-col-name` - a column where name of split is stored, either `:train` or `:test` values (default: `:$split-name`)
* `:split-id-col-name` - a column where id of the train/test pair is stored (default: `:$split-id`)
* `:ratio` - specify a list of split ratios for `:holdout`. Need to have same size then `:split-names` (example: [0.2 0.2 0.6])

Rows are shuffled before splitting.

In case of grouped dataset each group is processed separately.

See [more](https://www.mitpressjournals.org/doi/pdf/10.1162/EVCO_a_00069)
sourceraw docstring

split->seqclj

(split->seq)
(split->seq split-type)
(split->seq split-type options)

Returns split as a sequence of train/test datasets or map of sequences (grouped dataset)

Returns split as a sequence of train/test datasets or map of sequences (grouped dataset)
sourceraw docstring

sqclj

(sq target-col columns-selector)
(sq target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/sq to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/sq to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

sqrtclj

(sqrt target-col columns-selector)
(sqrt target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/sqrt to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/sqrt to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

sumclj

(sum columns-selector)
(sum columns-selector options)

Applies the operation tablecloth.column.api.operators/sum to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/sum to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

sum-fastclj

(sum-fast columns-selector)

Applies the operation tablecloth.column.api.operators/sum-fast to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/sum-fast to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

tailclj

(tail)
(tail n)

Last n rows (default 5)

Last n rows (default 5)
sourceraw docstring

tanclj

(tan target-col columns-selector)
(tan target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/tan to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/tan to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

tanhclj

(tanh target-col columns-selector)
(tanh target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/tanh to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/tanh to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

to-degreesclj

(to-degrees target-col columns-selector)
(to-degrees target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/to-degrees to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/to-degrees to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

to-radiansclj

(to-radians target-col columns-selector)
(to-radians target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/to-radians to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/to-radians to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

ulpclj

(ulp target-col columns-selector)
(ulp target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/ulp to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/ulp to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

ungroupclj

(ungroup)
(ungroup options)

Concat groups into dataset.

When add-group-as-column or add-group-id-as-column is set to true or name(s), columns with group name(s) or group id is added to the result.

Before joining the groups groups can be sorted by group name.

Concat groups into dataset.

When `add-group-as-column` or `add-group-id-as-column` is set to `true` or name(s), columns with group name(s) or group id is added to the result.

Before joining the groups groups can be sorted by group name.
sourceraw docstring

unionclj

(union & args)
source

unique-byclj

(unique-by)
(unique-by columns-selector)
(unique-by columns-selector options)

Remove rows which contains the same data column-selector Select columns for uniqueness strategy There are 4 strategies defined to handle duplicates

:first - select first row (default) :last - select last row :random - select random row any function - apply function to a columns which are subject of uniqueness

Remove rows which contains the same data
`column-selector` Select columns for uniqueness
`strategy` There are 4 strategies defined to handle duplicates

  `:first` - select first row (default)
  `:last` - select last row
  `:random` - select random row
  any function - apply function to a columns which are subject of uniqueness
sourceraw docstring

unmark-groupclj

(unmark-group)

Remove grouping tag

Remove grouping tag
sourceraw docstring

unrollclj

(unroll columns-selector)
(unroll columns-selector options)

Unfolds sequences stored inside a column(s), turning it into multiple columns. Opposite of fold-by. Add each of the provided columns to the set that defines the "uniqe key" of each row. Thus there will be a new row for each value inside the target column(s)' value sequence. If you want instead to split the content of the columns into a set of new columns, look at separate-column. See https://scicloj.github.io/tablecloth/index.html#Unroll

Unfolds sequences stored inside a column(s), turning it into multiple columns. Opposite of [[fold-by]].
Add each of the provided columns to the set that defines the "uniqe key" of each row.
Thus there will be a new row for each value inside the target column(s)' value sequence.
If you want instead to split the content of the columns into a set of new _columns_, look at [[separate-column]].
See https://scicloj.github.io/tablecloth/index.html#Unroll
sourceraw docstring

unsigned-bit-shift-rightclj

(unsigned-bit-shift-right target-col columns-selector)

Applies the operation tablecloth.column.api.operators/unsigned-bit-shift-right to the columns selected by columns-selector and returns a new ds with the the result in target-col. null

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/unsigned-bit-shift-right to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. null

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

update-columnsclj

(update-columns columns-map)
(update-columns columns-selector update-functions)
source

varianceclj

(variance columns-selector)
(variance columns-selector options)

Applies the operation tablecloth.column.api.operators/variance to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/variance to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

write!clj

(write! output-path)
(write! output-path options)

Write a dataset out to a file. Supported forms are:

(ds/write! test-ds "test.csv")
(ds/write! test-ds "test.tsv")
(ds/write! test-ds "test.tsv.gz")
(ds/write! test-ds "test.nippy")
(ds/write! test-ds out-stream)

Options:

  • :max-chars-per-column - csv,tsv specific, defaults to 65536 - values longer than this will cause an exception during serialization.
  • :max-num-columns - csv,tsv specific, defaults to 8192 - If the dataset has more than this number of columns an exception will be thrown during serialization.
  • :quoted-columns - csv specific - sequence of columns names that you would like to always have quoted.
  • :file-type - Manually specify the file type. This is usually inferred from the filename but if you pass in an output stream then you will need to specify the file type.
  • :headers? - if csv headers are written, defaults to true.
Write a dataset out to a file.  Supported forms are:

```clojure
(ds/write! test-ds "test.csv")
(ds/write! test-ds "test.tsv")
(ds/write! test-ds "test.tsv.gz")
(ds/write! test-ds "test.nippy")
(ds/write! test-ds out-stream)
```

Options:

  * `:max-chars-per-column` - csv,tsv specific, defaults to 65536 - values longer than this will
     cause an exception during serialization.
  * `:max-num-columns` - csv,tsv specific, defaults to 8192 - If the dataset has more than this number of
     columns an exception will be thrown during serialization.
  * `:quoted-columns` - csv specific - sequence of columns names that you would like to always have quoted.
  * `:file-type` - Manually specify the file type.  This is usually inferred from the filename but if you
     pass in an output stream then you will need to specify the file type.
  * `:headers?` - if csv headers are written, defaults to true.
sourceraw docstring

write-nippy!clj

(write-nippy! filename)
source

zero?clj

(zero? target-col columns-selector)
(zero? target-col columns-selector options)

Applies the operation tablecloth.column.api.operators/zero? to the columns selected by columns-selector and returns a new ds with the the result in target-col. This operation takes a maximum of 1 columns, so columns-selector can yield no more than that many columns.

`columns-selector can be:

  • name
  • sequence of names
  • map of names with new names (rename)
  • function which filter names (via column metadata)
Applies the operation tablecloth.column.api.operators/zero? to the columns selected by
`columns-selector` and returns a new ds with the the result in
`target-col`. This operation takes a maximum of 1 columns, so
   `columns-selector` can yield no more than that many columns.

`columns-selector can be:
- name
- sequence of names
- map of names with new names (rename)
- function which filter names (via column metadata)
sourceraw docstring

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

× close