View Source Explorer.Backend.Series behaviour (Explorer v0.10.1)
The behaviour for series backends.
Summary
Types
@type df() :: Explorer.DataFrame.t()
@type dtype() :: Explorer.Series.dtype()
@type io_result(t) :: {:ok, t} | {:error, Exception.t()}
@type lazy_s() :: Explorer.Series.lazy_t()
@type non_finite() :: Explorer.Series.non_finite()
@type option(type) :: type | nil
@type s() :: Explorer.Series.t()
@type t() :: struct()
@type valid_types() :: number() | boolean() | String.t() | Date.t() | Time.t() | NaiveDateTime.t() | Explorer.Duration.t() | Decimal.t()
Callbacks
@callback argmax(s()) :: number() | non_finite() | lazy_s() | nil
@callback argmin(s()) :: number() | non_finite() | lazy_s() | nil
@callback correlation(s(), s(), ddof :: non_neg_integer(), method :: atom()) :: float() | non_finite() | lazy_s() | nil
@callback covariance(s(), s(), ddof :: non_neg_integer()) :: float() | non_finite() | lazy_s() | nil
@callback fill_missing_with_value(s(), :nan | valid_types()) :: s()
@callback first(s()) :: valid_types() | lazy_s()
@callback inspect(s(), opts :: Inspect.Opts.t()) :: Inspect.Algebra.t()
@callback last(s()) :: valid_types() | lazy_s()
@callback max(s()) :: number() | non_finite() | Date.t() | NaiveDateTime.t() | lazy_s() | nil
@callback mean(s()) :: float() | non_finite() | lazy_s() | nil
@callback median(s()) :: float() | non_finite() | lazy_s() | nil
@callback member?(s(), valid_types()) :: s()
@callback min(s()) :: number() | non_finite() | Date.t() | NaiveDateTime.t() | lazy_s() | nil
@callback product(s()) :: float() | non_finite() | lazy_s() | nil
qcut( s, quantiles, labels, break_point_label, category_label, allow_duplicates, left_close, include_breaks )
@callback quantile(s(), float()) :: number() | non_finite() | Date.t() | NaiveDateTime.t() | lazy_s() | nil
@callback round(s(), decimals :: non_neg_integer()) :: s()
@callback size(s()) :: non_neg_integer() | lazy_s()
@callback skew(s(), bias? :: boolean()) :: float() | non_finite() | lazy_s() | nil
@callback standard_deviation(s(), ddof :: non_neg_integer()) :: float() | non_finite() | lazy_s() | nil
@callback substring(s(), integer(), non_neg_integer() | nil) :: s()
@callback sum(s()) :: number() | non_finite() | lazy_s() | nil
@callback variance(s(), ddof :: non_neg_integer()) :: float() | non_finite() | lazy_s() | nil