Class: Polars::CatNameSpace
- Inherits:
-
Object
- Object
- Polars::CatNameSpace
- Defined in:
- lib/polars/cat_name_space.rb
Overview
Series.cat namespace.
Instance Method Summary collapse
-
#ends_with(suffix) ⇒ Series
Check if string representations of values end with a substring.
-
#get_categories ⇒ Series
Get the categories stored in this data type.
-
#is_local ⇒ Boolean
Return whether or not the column is a local categorical.
-
#len_bytes ⇒ Series
Return the byte-length of the string representation of each value.
-
#len_chars ⇒ Series
Return the number of characters of the string representation of each value.
-
#slice(offset, length = nil) ⇒ Series
Extract a substring from the string representation of each string value.
-
#starts_with(prefix) ⇒ Series
Check if string representations of values start with a substring.
-
#to_local ⇒ Series
Simply returns the column as-is, local representations are deprecated.
-
#uses_lexical_ordering ⇒ Boolean
Indicate whether the Series uses lexical ordering.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Polars::ExprDispatch
Instance Method Details
#ends_with(suffix) ⇒ Series
Check if string representations of values end with a substring.
144 145 146 |
# File 'lib/polars/cat_name_space.rb', line 144 def ends_with(suffix) super end |
#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.
Always returns false.
37 38 39 |
# File 'lib/polars/cat_name_space.rb', line 37 def is_local _s.cat_is_local end |
#len_bytes ⇒ Series
Return the byte-length of the string representation of each value.
80 81 82 |
# File 'lib/polars/cat_name_space.rb', line 80 def len_bytes super end |
#len_chars ⇒ Series
Return the number of characters of the string representation of each value.
100 101 102 |
# File 'lib/polars/cat_name_space.rb', line 100 def len_chars super end |
#slice(offset, length = nil) ⇒ Series
Extract a substring from the string representation of each string value.
182 183 184 |
# File 'lib/polars/cat_name_space.rb', line 182 def slice(offset, length = nil) super end |
#starts_with(prefix) ⇒ Series
Check if string representations of values start with a substring.
122 123 124 |
# File 'lib/polars/cat_name_space.rb', line 122 def starts_with(prefix) super end |
#to_local ⇒ Series
Simply returns the column as-is, local representations are deprecated.
44 45 46 |
# File 'lib/polars/cat_name_space.rb', line 44 def to_local Utils.wrap_s(_s.cat_to_local) end |
#uses_lexical_ordering ⇒ Boolean
This functionality is considered unstable. It may be changed at any point without it being considered a breaking change.
Indicate whether the Series uses lexical ordering.
60 61 62 |
# File 'lib/polars/cat_name_space.rb', line 60 def uses_lexical_ordering _s.cat_uses_lexical_ordering end |