View Source Explorer (Explorer v0.1.1)

Explorer brings series (one-dimensional) and dataframes (two-dimensional) for fast data exploration to Elixir.

Most of the functionality in Explorer is in Explorer.DataFrame and Explorer.Series. Refer to those modules for more in-depth documentation.

This module only handles the default backend for Explorer. 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

Link to this section Summary

Functions

Gets the default backend for the current process.

Sets the current process default backend to backend.

Link to this section Functions

Gets the default backend for the current process.

Link to this function

default_backend(backend)

View Source

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

Examples

iex> Explorer.default_backend(Lib.CustomBackend)
Explorer.PolarsBackend
iex> Explorer.default_backend()
Lib.CustomBackend