Skip to content

FacetPart

Mojo struct 🡭

FacetPart

@memory_only
struct FacetPart

One level of a faceting column: its name, and the rows that carry it.

The name is what a panel is titled by, and the frame is what a panel is drawn from, so a facet is two lines of caller code rather than a new overload per mark.

Fields

  • name (String): The level, as it appears in the column. A row whose level is missing is gathered under Theme.missing_category_label.
  • frame (DataFrame): That level’s rows, in the order the table had them.

Implemented traits

AnyType, Copyable, Deinitable, Movable

Methods

__init__

fn def __init__(out self, var name: String, var frame: DataFrame)

Args:

  • name (String)
  • frame (DataFrame)
  • self (Self)

Returns:

Self