Class: Polars::CatNameSpace
- Inherits:
-
Object
- Object
- Polars::CatNameSpace
- Defined in:
- lib/polars/cat_name_space.rb
Overview
Series.cat namespace.
Instance Method Summary collapse
-
#get_categories ⇒ Series
Get the categories stored in this data type.
-
#is_local ⇒ Boolean
Return whether or not the column is a local categorical.
-
#set_ordering(ordering) ⇒ Series
Determine how this categorical series should be sorted.
-
#to_local ⇒ Series
Convert a categorical column to its local representation.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Polars::ExprDispatch
Instance Method Details
#get_categories ⇒ Series
Get the categories stored in this data type.
65 66 67 |
# File 'lib/polars/cat_name_space.rb', line 65 def get_categories super end |
#is_local ⇒ Boolean
Return whether or not the column is a local categorical.
85 86 87 |
# File 'lib/polars/cat_name_space.rb', line 85 def is_local _s.cat_is_local end |
#set_ordering(ordering) ⇒ Series
Determine how this categorical series should be sorted.
46 47 48 |
# File 'lib/polars/cat_name_space.rb', line 46 def set_ordering(ordering) super end |
#to_local ⇒ Series
Convert a categorical column to its local representation.
This may change the underlying physical representation of the column.
121 122 123 |
# File 'lib/polars/cat_name_space.rb', line 121 def to_local Utils.wrap_s(_s.cat_to_local) end |