Kino.Explorer (KinoExplorer v0.1.25)

View Source

A kino for interactively viewing Explorer.DataFrame.

Examples

df = Explorer.Datasets.fossil_fuels()
Kino.Explorer.new(df)

Summary

Functions

Creates a new kino displaying a given data frame or series as a rich table.

Updates the table to display a new data frame.

Types

t()

@type t() :: Kino.JS.Live.t()

Functions

new(data, opts \\ [])

@spec new(
  Explorer.DataFrame.t() | Explorer.Series.t(),
  keyword()
) :: t()

Creates a new kino displaying a given data frame or series as a rich table.

Options

  • :name - The displayed name of the table. Defaults to "DataFrame" or "Series", depending on the given data

  • :num_rows - the number of rows to show in the table. Defaults to 10.

  • :summaries - whether to show summaries for numeric and categorical columns. Defaults to true.

update(kino, df)

Updates the table to display a new data frame.

Examples

df = Explorer.Datasets.iris()
kino = Kino.Explorer.new(data)

Once created, you can update the table to display new data:

new_df = Explorer.Datasets.fossil_fuels()
Kino.Explorer.update(kino, new_df)