View Source Explorer.Backend.Series behaviour (Explorer v0.7.1)
The behaviour for series backends.
Summary
Types
@type df() :: Explorer.DataFrame.t()
@type dtype() :: Explorer.Series.dtype()
@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()
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()) :: float() | non_finite() | lazy_s() | nil
@callback covariance(s(), s()) :: 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 iotype(s()) :: :uft8 | :binary | {:s | :u | :f, non_neg_integer()}
@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 min(s()) :: number() | non_finite() | Date.t() | NaiveDateTime.t() | lazy_s() | nil
@callback product(s()) :: float() | non_finite() | lazy_s() | nil
@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()) :: 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()) :: float() | non_finite() | lazy_s() | nil
Link to this callback
window_standard_deviation(s, window_size, weights, min_periods, center)
View SourceFunctions
Default inspect implementation for backends.
Create a new Series
.