Class: Polars::Categorical

Inherits:
DataType show all
Defined in:
lib/polars/data_types.rb

Overview

A categorical encoding of a set of strings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ordering = "physical") ⇒ Categorical

Returns a new instance of Categorical.



297
298
299
# File 'lib/polars/data_types.rb', line 297

def initialize(ordering = "physical")
  @ordering = ordering
end

Instance Attribute Details

#orderingObject (readonly)

Returns the value of attribute ordering.



295
296
297
# File 'lib/polars/data_types.rb', line 295

def ordering
  @ordering
end