View Source Explorer.Backend (Explorer v0.7.1)
The behaviour for Explorer backends and associated functions.
Each backend is a module with DataFrame
and Series
submodules that match the
respective behaviours for each.
The default backend is read from the application environment. Currently, the only
backend is an in-memory, eager one based on
Polars
. When alternatives are
available, you can use them by configuring your runtime:
# config/runtime.exs
import Config
config :explorer, default_backend: Lib.CustomBackend
Summary
Functions
Gets the default backend for the current process.
Sets the current process default backend to backend
.
Functions
Gets the default backend for the current process.
Sets the current process default backend to backend
.
The default backend is stored only in the process dictionary. This means if
you start a separate process, such as Task
, the default backend must be set
on the new process too.
Examples
iex> Explorer.Backend.put(Lib.CustomBackend)
Explorer.PolarsBackend
iex> Explorer.Backend.get()
Lib.CustomBackend