Skip to content

Set Ordering

Description

[Deprecated] Determine how this categorical series should be sorted.

Usage

<Expr>$cat$set_ordering(ordering)

Arguments

ordering string either ‘physical’ or ‘lexical’
  • “physical”: use the physical representation of the categories to determine the order (default).
  • “lexical”: use the string values to determine the order.

Value

A polars expression