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.
-
#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.
28 29 30 |
# File 'lib/polars/cat_name_space.rb', line 28 def get_categories super end |
#is_local ⇒ Boolean
Return whether or not the column is a local categorical.
48 49 50 |
# File 'lib/polars/cat_name_space.rb', line 48 def is_local _s.cat_is_local end |
#to_local ⇒ Series
Convert a categorical column to its local representation.
This may change the underlying physical representation of the column.
84 85 86 |
# File 'lib/polars/cat_name_space.rb', line 84 def to_local Utils.wrap_s(_s.cat_to_local) end |