View Source Explorer.Backend.Series behaviour (Explorer v0.8.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()
@type valid_types() :: number() | boolean() | String.t() | Date.t() | Time.t() | NaiveDateTime.t() | Explorer.Duration.t()
Callbacks
@callback argmax(s()) :: number() | non_finite() | lazy_s() | nil
@callback argmin(s()) :: number() | non_finite() | lazy_s() | nil
Link to this callback
argsort(s, descending?, maintain_order?, multithreaded?, nulls_last?)
View Source@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
Link to this callback
ewm_standard_deviation(s, alpha, adjust, bias, min_periods, ignore_nils)
View Source@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
@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
Link to this callback
sort(s, descending?, maintain_order?, multithreaded?, nulls_last?)
View Source@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
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
.