Method: Polars::StringNameSpace#strip_chars_start

Defined in:
lib/polars/string_name_space.rb

#strip_chars_start(characters = nil) ⇒ Series

Remove leading whitespace.

Examples:

s = Polars::Series.new([" hello ", "\tworld"])
s.str.strip_chars_start
# =>
# 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 start of the string. If set to nil (default), all leading and trailing whitespace is removed instead.

Returns:



844
845
846
# File 'lib/polars/string_name_space.rb', line 844

def strip_chars_start(characters = nil)
  super
end