Liking cljdoc? Tell your friends :D

tablecloth.column.api.api-template

Tablecloth Column API

Tablecloth Column API
raw docstring

*clj

(* x y)
(* x y & args)
source

+clj

(+ x)
(+ x y)
(+ x y & args)
source

-clj

(- x)
(- x y)
(- x y & args)
source

/clj

(/ x)
(/ x y)
(/ x y & args)
source

<clj

(< x y)
(< x y z)
source

<=clj

(<= x y)
(<= x y z)
source

>clj

(> x y)
(> x y z)
source

>=clj

(>= x y)
(>= x y z)
source

absclj

(abs x)
(abs x options)
source

acosclj

(acos x)
(acos x options)
source

andclj

(and x y)
source

asinclj

(asin x)
(asin x options)
source

atanclj

(atan x)
(atan x options)
source

atan2clj

(atan2 x y)
(atan2 x y & args)
source

bit-andclj

(bit-and x y)
(bit-and x y & args)
source

bit-and-notclj

(bit-and-not x y)
(bit-and-not x y & args)
source

bit-clearclj

(bit-clear x y)
(bit-clear x y & args)
source

bit-flipclj

(bit-flip x y)
(bit-flip x y & args)
source

bit-notclj

(bit-not x)
(bit-not x options)
source

bit-orclj

(bit-or x y)
(bit-or x y & args)
source

bit-setclj

(bit-set x y)
(bit-set x y & args)
source

bit-shift-leftclj

(bit-shift-left x y)
(bit-shift-left x y & args)
source

bit-shift-rightclj

(bit-shift-right x y)
(bit-shift-right x y & args)
source

bit-xorclj

(bit-xor x y)
(bit-xor x y & args)
source

cbrtclj

(cbrt x)
(cbrt x options)
source

ceilclj

(ceil x)
(ceil x options)
source

columnclj

(column)
(column data)
(column data {:keys [name] :as options})

Create a column from a vector or sequence.

Create a `column` from a vector or sequence. 
sourceraw docstring

column-mapclj

(column-map col map-fn)
(column-map col map-fn options)

Applies a map function map-fn to one or more columns. If col is a vector of columns, map-fn must have an arity equal to the number of columns. The datatype of the resulting column will be inferred, unless specified in the options map. Missing values can be handled by providing a :missing-fn in the options map.

options:

  • :datatype - The desired datatype of the resulting column. The datatype is inferred if not provided
  • :missing-fn - A function that takes a sequence of columns, and returns a set of missing index positions.
Applies a map function `map-fn` to one or more columns. If `col` is
a vector of columns, `map-fn` must have an arity equal to the number
of columns. The datatype of the resulting column will be inferred,
unless specified in the `options` map. Missing values can be handled
by providing a `:missing-fn` in the options map.

options:
- :datatype   - The desired datatype of the resulting column. The datatype
                is inferred if not provided
- :missing-fn - A function that takes a sequence of columns, and returns a
                set of missing index positions.
sourceraw docstring

column?clj

(column? item)

Return true or false item is a column.

Return true or false `item` is a column.
sourceraw docstring

cosclj

(cos x)
(cos x options)
source

coshclj

(cosh x)
(cosh x options)
source

count-missingclj

(count-missing col)

Returns the number of missing values in column col.

Returns the number of missing values in column `col`. 
sourceraw docstring

cummaxclj

(cummax x)
(cummax x options)

Cumulative running max; returns result in double space.

Options:

  • :nan-strategy - one of :keep, :remove, :exception. Defaults to :remove.
Cumulative running max; returns result in double space.

Options:

* `:nan-strategy` - one of `:keep`, `:remove`, `:exception`.  Defaults to `:remove`.
sourceraw docstring

cumminclj

(cummin x)
(cummin x options)

Cumulative running min; returns result in double space.

Options:

  • :nan-strategy - one of :keep, :remove, :exception. Defaults to :remove.
Cumulative running min; returns result in double space.

Options:

* `:nan-strategy` - one of `:keep`, `:remove`, `:exception`.  Defaults to `:remove`.
sourceraw docstring

cumprodclj

(cumprod x)
(cumprod x options)

Cumulative running product; returns result in double space.

Options:

  • :nan-strategy - one of :keep, :remove, :exception. Defaults to :remove.
Cumulative running product; returns result in double space.

Options:

* `:nan-strategy` - one of `:keep`, `:remove`, `:exception`.  Defaults to `:remove`.
sourceraw docstring

cumsumclj

(cumsum x)
(cumsum x options)

Cumulative running summation; returns result in double space.

Options:

  • :nan-strategy - one of :keep, :remove, :exception. Defaults to :remove.
Cumulative running summation; returns result in double space.

Options:

* `:nan-strategy` - one of `:keep`, `:remove`, `:exception`.  Defaults to `:remove`.
sourceraw docstring

descriptive-statisticsclj

(descriptive-statistics x)
(descriptive-statistics x stats-names)
(descriptive-statistics x stats-names options)
(descriptive-statistics x stats-names stats-data options)

Calculate a set of descriptive statistics on a single reader.

Available stats: #{:min :quartile-1 :sum :mean :mode :median :quartile-3 :max :variance :standard-deviation :skew :n-elems :kurtosis}

options

  • :nan-strategy - defaults to :remove, one of [:keep :remove :exception]. The fastest option is :keep but this may result in your results having NaN's in them. You can also pass in a double predicate to filter custom double values.
Calculate a set of descriptive statistics on a single reader.

Available stats:
#{:min :quartile-1 :sum :mean :mode :median :quartile-3 :max
  :variance :standard-deviation :skew :n-elems :kurtosis}

options
  - `:nan-strategy` - defaults to :remove, one of
  [:keep :remove :exception]. The fastest option is :keep but this
  may result in your results having NaN's in them.  You can also pass
in a double predicate to filter custom double values.
sourceraw docstring

distanceclj

(distance x y)
source

distance-squaredclj

(distance-squared x y)
source

dot-productclj

(dot-product x y)
source

drop-missingclj

(drop-missing col)

Remove missing values from column col.

Remove missing values from column `col`.
sourceraw docstring

eqclj

(eq x y)
source

equalsclj

(equals x y & args)
source

even?clj

(even? x)
(even? x options)
source

expclj

(exp x)
(exp x options)
source

expm1clj

(expm1 x)
(expm1 x options)
source

fill-rangeclj

(fill-range x max-span)

Given a reader of numeric data and a max span amount, produce a new reader where the difference between any two consecutive elements is less than or equal to the max span amount. Also return a bitmap of the added indexes. Uses linear interpolation to fill in areas, operates in double space. Returns {:result :missing}

Given a reader of numeric data and a max span amount, produce
a new reader where the difference between any two consecutive elements
is less than or equal to the max span amount.  Also return a bitmap of the added
indexes.  Uses linear interpolation to fill in areas, operates in double space.
Returns
{:result :missing}
sourceraw docstring

finite?clj

(finite? x)
(finite? x options)
source

floorclj

(floor x)
(floor x options)
source

get-significandclj

(get-significand x)
(get-significand x options)
source

hypotclj

(hypot x y)
(hypot x y & args)
source

identityclj

(identity x)
(identity x options)
source

ieee-remainderclj

(ieee-remainder x y)
(ieee-remainder x y & args)
source

infinite?clj

(infinite? x)
(infinite? x options)
source

is-missing?clj

(is-missing? col idx)

Return true if this index is missing.

Return true if this index is missing.
sourceraw docstring

kendalls-correlationclj

(kendalls-correlation x y)
(kendalls-correlation x y options)
source

kurtosisclj

(kurtosis x)
(kurtosis x options)
source

logclj

(log x)
(log x options)
source

log10clj

(log10 x)
(log10 x options)
source

log1pclj

(log1p x)
(log1p x options)
source

logisticclj

(logistic x)
(logistic x options)
source

magnitudeclj

(magnitude x)
source

magnitude-squaredclj

(magnitude-squared x)
source

mathematical-integer?clj

(mathematical-integer? x)
(mathematical-integer? x options)
source

maxclj

(max x)
(max x y)
(max x y & args)
source

meanclj

(mean x)
(mean x options)

double mean of x

double mean of x
sourceraw docstring

mean-fastclj

(mean-fast x)

Take the mean of the x. This operation doesn't know anything about nan hence it is a bit faster than the base mean fn.

Take the mean of the x.  This operation doesn't know anything about nan hence it is
a bit faster than the base [[mean]] fn.
sourceraw docstring

medianclj

(median x)
(median x options)
source

minclj

(min x)
(min x y)
(min x y & args)
source

missingclj

(missing col)

Indexes of missing values. Both iterable and reader.

Indexes of missing values.  Both iterable and reader.
sourceraw docstring

nan?clj

(nan? x)
(nan? x options)
source

neg?clj

(neg? x)
(neg? x options)
source

next-downclj

(next-down x)
(next-down x options)
source

next-upclj

(next-up x)
(next-up x options)
source

normalizeclj

(normalize x)
source

notclj

(not x)
(not x options)
source

not-eqclj

(not-eq x y)
source

odd?clj

(odd? x)
(odd? x options)
source

onesclj

(ones n-ones)

Creates a new column filled with n-ones

Creates a new column filled with `n-ones`
sourceraw docstring

orclj

(or x y)
source

pearsons-correlationclj

(pearsons-correlation x y)
(pearsons-correlation x y options)
source

percentilesclj

(percentiles x percentages)
(percentiles x percentages options)

Create a reader of percentile values, one for each percentage passed in. Estimation types are in the set of #{:r1,r2...legacy} and are described here: https://commons.apache.org/proper/commons-math/javadocs/api-3.3/index.html.

nan-strategy can be one of [:keep :remove :exception] and defaults to :exception.

Create a reader of percentile values, one for each percentage passed in.
Estimation types are in the set of #{:r1,r2...legacy} and are described
here: https://commons.apache.org/proper/commons-math/javadocs/api-3.3/index.html.

nan-strategy can be one of [:keep :remove :exception] and defaults to :exception.
sourceraw docstring

pos?clj

(pos? x)
(pos? x options)
source

powclj

(pow x y)
(pow x y & args)
source

quartile-1clj

(quartile-1 x)
(quartile-1 x options)
source

quartile-3clj

(quartile-3 x)
(quartile-3 x options)
source

quartilesclj

(quartiles x)
(quartiles x options)

return [min, 25 50 75 max] of item

return [min, 25 50 75 max] of item
sourceraw docstring

quotclj

(quot x y)
(quot x y & args)
source

reduce-*clj

(reduce-* x)
source

reduce-+clj

(reduce-+ x)
source

reduce-maxclj

(reduce-max x)
source

reduce-minclj

(reduce-min x)
source

remclj

(rem x y)
(rem x y & args)
source

replace-missingclj

(replace-missing col)
(replace-missing col strategy)
(replace-missing col strategy value)

Replace missing values in column col with give strategy.

Strategies may be:

  • :down - Take the previous value, or use provided value.
  • :up - Take the next value, or use provided value.
  • :downup - Take the previous value, otherwise take the next value.
  • :updown - Take the next value, otherwise take the previous value.
  • :nearest - Use the nearest of next or previous values. (Strategy :mid is an alias for :nearest).
  • :midpoint - Use the midpoint of averaged values between previous and next (non-missing) values.
  • :abb - Impute missing value with approximate Bayesian bootstrap. See r's ABB.
  • :lerp - Linearly interpolate values between previous and next nonmissing rows.
  • :value - Provide a value explicitly. Value may be a function in which case it will be called on the column with missing values elided and the return will be used to as the filler.
Replace missing values in column `col` with give `strategy`.

Strategies may be:

- `:down` -	Take the previous value, or use provided value.
- `:up` - Take the next value, or use provided value.
- `:downup` - Take the previous value, otherwise take the next value.
- `:updown` - Take the next value, otherwise take the previous value.
- `:nearest` - Use the nearest of next or previous values. (Strategy `:mid` is an alias for `:nearest`).
- `:midpoint` - Use the midpoint of averaged values between previous and next (non-missing) values.
- `:abb` - Impute missing value with approximate Bayesian bootstrap.
           See [r's ABB](https://search.r-project.org/CRAN/refmans/LaplacesDemon/html/ABB.html).
- `:lerp` - Linearly interpolate values between previous and next nonmissing rows.
- `:value` - Provide a value explicitly.  Value may be a function in which
             case it will be called on the column with missing values elided
             and the return will be used to as the filler.
sourceraw docstring

rintclj

(rint x)
(rint x options)
source

roundclj

(round x)
(round x options)

Vectorized implementation of Math/round. Operates in double space but returns a long or long reader.

Vectorized implementation of Math/round.  Operates in double space
but returns a long or long reader.
sourceraw docstring

selectclj

(select col selection)

Return a new column with the subset of indexes based on the provided selection. selection can be a list of indexes to select or boolean values where the index position of each true element indicates a index to select. When supplying a list of indices, duplicates are possible and will select the specified position more than once.

Return a new column with the subset of indexes based on the provided `selection`.
`selection` can be a list of indexes to select or boolean values where the index
position of each true element indicates a index to select. When supplying a list
of indices, duplicates are possible and will select the specified position more
than once.
sourceraw docstring

shiftclj

(shift x n)

Shift by n and fill in with the first element for n>0 or last element for n<0.

Examples:

user> (dfn/shift (range 10) 2)
[0 0 0 1 2 3 4 5 6 7]
user> (dfn/shift (range 10) -2)
[2 3 4 5 6 7 8 9 9 9]
Shift by n and fill in with the first element for n>0 or last element for n<0.

  Examples:

```clojure
user> (dfn/shift (range 10) 2)
[0 0 0 1 2 3 4 5 6 7]
user> (dfn/shift (range 10) -2)
[2 3 4 5 6 7 8 9 9 9]
```
sourceraw docstring

signumclj

(signum x)
(signum x options)
source

sinclj

(sin x)
(sin x options)
source

sinhclj

(sinh x)
(sinh x options)
source

skewclj

(skew x)
(skew x options)
source

sliceclj

(slice col from)
(slice col from to)
(slice col from to step)

Returns a subset of the column defined by the inclusive from and to indexes. If to is not provided, slices to the end of the column. If from is not provided (i.e. is nil), slices from the beginning of the column. If either from or to is a negative number, it is treated as an index from the end of the column. The :start and :end keywords can be used to represent the start and end of the column, respectively.

Examples: (def column [1 2 3 4 5]) (slice column 1 3) ;=> [2 3] (slice column 2) ;=> [3 4 5] (slice column -3 -1) ;=> [3 4 5] (slice column :start 2) ;=> [1 2 3 4 5] (slice column 2 :end) ;=> [3 4 5] (slice column -2 :end) ;=> [4 5]

Returns a subset of the column defined by the inclusive `from` and
`to` indexes. If `to` is not provided, slices to the end of the
column. If `from` is not provided (i.e. is `nil`), slices from the
beginning of the column. If either `from` or `to` is a negative
number, it is treated as an index from the end of the column. The
`:start` and `:end` keywords can be used to represent the start and
end of the column, respectively.

Examples:
(def column [1 2 3 4 5])
(slice column 1 3)     ;=> [2 3]
(slice column 2)        ;=> [3 4 5]
(slice column -3 -1)    ;=> [3 4 5]
(slice column :start 2) ;=> [1 2 3 4 5]
(slice column 2 :end)   ;=> [3 4 5]
(slice column -2 :end)  ;=> [4 5]
sourceraw docstring

sort-columnclj

(sort-column col)
(sort-column col order-or-comparator)

Returns a sorted version of the column col. You can supply the ordering keywords :asc or :desc or a comparator function to order-or-comparator. If no comparator function is provided, the column will be sorted in ascending order.

Returns a sorted version of the column `col`. You can supply the ordering
keywords `:asc` or `:desc` or a comparator function to `order-or-comparator`.
If no comparator function is provided, the column will be sorted in
ascending order.
sourceraw docstring

spearmans-correlationclj

(spearmans-correlation x y)
(spearmans-correlation x y options)
source

sqclj

(sq x)
(sq x options)
source

sqrtclj

(sqrt x)
(sqrt x options)
source

standard-deviationclj

(standard-deviation x)
(standard-deviation x options)
source

sumclj

(sum x)
(sum x options)

Double sum of data using Kahan compensated summation.

Double sum of data using
[Kahan compensated summation](https://en.wikipedia.org/wiki/Kahan_summation_algorithm).
sourceraw docstring

sum-fastclj

(sum-fast x)

Find the sum of the data. This operation is neither nan-aware nor does it implement kahans compensation although via parallelization it implements pairwise summation compensation. For a more but slightly slower but far more correct sum operator, use sum.

Find the sum of the data.  This operation is neither nan-aware nor does it implement
kahans compensation although via parallelization it implements pairwise summation
compensation.  For a more but slightly slower but far more correct sum operator,
use [[sum]].
sourceraw docstring

tanclj

(tan x)
(tan x options)
source

tanhclj

(tanh x)
(tanh x options)
source

to-degreesclj

(to-degrees x)
(to-degrees x options)
source

to-radiansclj

(to-radians x)
(to-radians x options)
source

typeofclj

(typeof col)

Returns the concrete type of the elements within the column col.

Returns the concrete type of the elements within the column `col`.
sourceraw docstring

typeof?clj

(typeof? col datatype)

True|false the column's elements are of the provided type datatype. Can check both concrete types (e.g. :int32) or general types (:numerical, :textual, etc).

True|false the column's elements are of the provided type `datatype`. Can check
both concrete types (e.g. :int32) or general types (:numerical, :textual, etc).
sourceraw docstring

ulpclj

(ulp x)
(ulp x options)
source

unsigned-bit-shift-rightclj

(unsigned-bit-shift-right x y)
(unsigned-bit-shift-right x y & args)
source

varianceclj

(variance x)
(variance x options)
source

zero?clj

(zero? x)
(zero? x options)
source

zerosclj

(zeros n-zeros)

Create a new column filled wth n-zeros.

Create a new column filled wth `n-zeros`.
sourceraw docstring

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

× close