View Source Explorer.Backend.Series behaviour (Explorer v0.4.0)
The behaviour for series backends.
Link to this section Summary
Link to this section Types
@type df() :: Explorer.DataFrame.t()
@type dtype() :: Explorer.Series.dtype()
@type lazy_s() :: Explorer.Series.lazy_t()
@type s() :: Explorer.Series.t()
@type t() :: struct()
@type valid_types() :: number() | boolean() | String.t() | Date.t() | NaiveDateTime.t()
Link to this section Callbacks
@callback bintype(s()) :: :uft8 | :binary | {:s | :u | :f, non_neg_integer()}
@callback equal(s() | valid_types(), s() | valid_types()) :: s()
@callback fill_missing( s(), strategy :: :backward | :forward | :min | :max | :mean | valid_types() ) :: s()
@callback first(s()) :: valid_types() | lazy_s()
@callback greater(s() | valid_types(), s() | valid_types()) :: s()
@callback greater_equal(s() | valid_types(), s() | valid_types()) :: s()
@callback inspect(s(), opts :: Inspect.Opts.t()) :: Inspect.Algebra.t()
@callback last(s()) :: valid_types() | lazy_s()
@callback less(s() | valid_types(), s() | valid_types()) :: s()
@callback less_equal(s() | valid_types(), s() | valid_types()) :: s()
@callback max(s()) :: number() | Date.t() | NaiveDateTime.t() | lazy_s() | nil
@callback min(s()) :: number() | Date.t() | NaiveDateTime.t() | lazy_s() | nil
@callback not_equal(s() | valid_types(), s() | valid_types()) :: s()
@callback quotient( s() | neg_integer() | pos_integer(), s() | neg_integer() | pos_integer() ) :: s()
@callback remainder( s() | neg_integer() | pos_integer(), s() | neg_integer() | pos_integer() ) :: s()
@callback size(s()) :: non_neg_integer() | lazy_s()
@callback window_max(s(), window_size :: integer(), [window_option()]) :: s()
@callback window_mean(s(), window_size :: integer(), [window_option()]) :: s()
@callback window_min(s(), window_size :: integer(), [window_option()]) :: s()
@callback window_sum(s(), window_size :: integer(), [window_option()]) :: s()
Link to this section Functions
Default inspect implementation for backends.
Create a new Series
.