Method: Polars::StringNameSpace#strip_chars_end

Defined in:
lib/polars/string_name_space.rb

#strip_chars_end(characters = nil) ⇒ Series

Remove trailing whitespace.

Examples:

s = Polars::Series.new([" hello ", "world\t"])
s.str.strip_chars_end
# =>
# shape: (2,)
# Series: '' [str]
# [
#         " hello"
#         "world"
# ]

Parameters:

  • characters (String) (defaults to: nil)

    The set of characters to be removed. All combinations of this set of characters will be stripped from the end of the string. If set to nil (default), all leading and trailing whitespace is removed instead.

Returns:



867
868
869
# File 'lib/polars/string_name_space.rb', line 867

def strip_chars_end(characters = nil)
  super
end