No matching definitions.

stats/summary

src/stats/summary.tur
defn

col-count

(col-count [col : int] :)

count non-null values in a float64 column.

col:int tur-frame float64 column handle

:int number of non-null elements.

(col-count c)  ; => 100

Since: ST1

defn

col-sum

(col-sum [col : int] :)

sum of non-null values in a float64 column.

col:int tur-frame float64 column handle

:float sum (0.0 if all null / empty).

Since: ST1

defn

col-mean

(col-mean [col : int] :)

arithmetic mean of non-null values.

col:int tur-frame float64 column handle

:float mean, or NaN if empty.

Since: ST1

defn

col-median

(col-median [col : int] :)

median of non-null values (type-7 interpolation).

col:int tur-frame float64 column handle

:float median, or NaN if empty.

Since: ST1

defn

col-mode

(col-mode [col : int] :)

most frequent value (first occurrence on tie).

col:int tur-frame float64 column handle

:float mode, or NaN if empty.

Since: ST1

defn

col-var

(col-var [col : int] :)

sample variance (n-1 denominator) of non-null values.

col:int tur-frame float64 column handle

:float variance, or NaN if fewer than 2 values.

Since: ST1

defn

col-sd

(col-sd [col : int] :)

sample standard deviation of non-null values.

col:int tur-frame float64 column handle

:float standard deviation, or NaN if fewer than 2 values.

Since: ST1

defn

col-min

(col-min [col : int] :)

minimum non-null value.

col:int tur-frame float64 column handle

:float minimum, or NaN if empty.

Since: ST1

defn

col-max

(col-max [col : int] :)

maximum non-null value.

col:int tur-frame float64 column handle

:float maximum, or NaN if empty.

Since: ST1

defn

col-range

(col-range [col : int] :)

max - min of non-null values.

col:int tur-frame float64 column handle

:float range, or NaN if empty.

Since: ST1

defn

col-quantile

(col-quantile [col : int q : float] :)

quantile via type-7 linear interpolation.

col:int tur-frame float64 column handle
q:float quantile in [0, 1]

:float quantile value, or NaN if empty.

(col-quantile c 0.25)  ; => first quartile

Since: ST1

defn

col-iqr

(col-iqr [col : int] :)

interquartile range (Q3 - Q1).

col:int tur-frame float64 column handle

:float IQR, or NaN if empty.

Since: ST1

defn

col-skewness

(col-skewness [col : int] :)

Fisher-Pearson skewness coefficient.

col:int tur-frame float64 column handle

:float skewness, or NaN if fewer than 3 values.

Since: ST1

defn

col-kurtosis

(col-kurtosis [col : int] :)

excess kurtosis (Fisher's definition, = 0 for normal).

col:int tur-frame float64 column handle

:float excess kurtosis, or NaN if fewer than 4 values.

Since: ST1

defn

frame-count

(frame-count [f : int name : cstr] :)

count non-null values in a named column of a frame.

f:int frame handle
name:cstr column name

:int non-null count, or -1 if column not found.

Since: ST1

defn

frame-sum

(frame-sum [f : int name : cstr] :)

sum of a named column.

Since: ST1

defn

frame-mean

(frame-mean [f : int name : cstr] :)

mean of a named column.

Since: ST1

defn

frame-median

(frame-median [f : int name : cstr] :)

median of a named column.

Since: ST1

defn

frame-mode

(frame-mode [f : int name : cstr] :)

mode of a named column.

Since: ST1

defn

frame-var

(frame-var [f : int name : cstr] :)

sample variance of a named column.

Since: ST1

defn

frame-sd

(frame-sd [f : int name : cstr] :)

sample standard deviation of a named column.

Since: ST1

defn

frame-min

(frame-min [f : int name : cstr] :)

minimum of a named column.

Since: ST1

defn

frame-max

(frame-max [f : int name : cstr] :)

maximum of a named column.

Since: ST1

defn

frame-range

(frame-range [f : int name : cstr] :)

range (max-min) of a named column.

Since: ST1

defn

frame-quantile

(frame-quantile [f : int name : cstr q : float] :)

quantile of a named column.

Since: ST1

defn

frame-iqr

(frame-iqr [f : int name : cstr] :)

IQR of a named column.

Since: ST1

defn

frame-skewness

(frame-skewness [f : int name : cstr] :)

skewness of a named column.

Since: ST1

defn

frame-kurtosis

(frame-kurtosis [f : int name : cstr] :)

excess kurtosis of a named column.

Since: ST1

defn

describe

(describe [f : int] :)

pandas-style descriptive summary of all float64 columns.

f:int frame handle

:int new frame with columns: stat (utf8), then one column per numeric input column. Rows: count, mean, sd, min, 25%, 50%, 75%, max.

(describe my-frame)

Since: ST1

Internal definitions
__frame-col-by-name