View Source Coda.Behaviour.Analytics behaviour (coda v0.1.0)
Behaviour, macro and functions for Explorer.DataFrame analytics
Summary
Types
@type data_frame() :: Explorer.DataFrame.t()
@type facets() :: {top_facets(), top_facets_stats()}
@type group() :: Explorer.DataFrame.column_name() | Explorer.DataFrame.column_names()
@type options() :: Keyword.t()
@type top_facets() :: Explorer.DataFrame.t()
@type top_facets_stats() :: %{required(integer()) => data_frame()}
Callbacks
@callback data_frame([{:format, atom()}]) :: {:ok, data_frame()} | {:error, term()}
@callback data_frame_stats(data_frame()) :: data_frame_stats()
@callback sample_albums(data_frame(), options()) :: facets()
@callback sample_artists(data_frame(), options()) :: facets()
@callback sample_tracks(data_frame(), options()) :: facets()
@callback top_albums(data_frame(), options()) :: facets()
@callback top_artists(data_frame(), options()) :: facets()
@callback top_tracks(data_frame(), options()) :: facets()