Class: Polars::Categorical
- Defined in:
- lib/polars/data_types.rb
Overview
A categorical encoding of a set of strings.
Instance Attribute Summary collapse
-
#ordering ⇒ Object
readonly
Returns the value of attribute ordering.
Instance Method Summary collapse
-
#initialize(ordering = "physical") ⇒ Categorical
constructor
A new instance of Categorical.
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
#ordering ⇒ Object (readonly)
Returns the value of attribute ordering.
295 296 297 |
# File 'lib/polars/data_types.rb', line 295 def ordering @ordering end |