Class: Polars::BinaryNameSpace

Inherits:
Object
  • Object
show all
Defined in:
lib/polars/binary_name_space.rb

Overview

Series.bin namespace.

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Polars::ExprDispatch

Instance Method Details

#contains(lit) ⇒ Series

Check if binaries in Series contain a binary substring.

Parameters:

  • lit (String)

    The binary substring to look for

Returns:



19
20
21
# File 'lib/polars/binary_name_space.rb', line 19

def contains(lit)
  super
end

#decode(encoding, strict: true) ⇒ Series

Decode a value using the provided encoding.

Parameters:

  • encoding ("hex", "base64")

    The encoding to use.

  • strict (Boolean) (defaults to: true)

    Raise an error if the underlying value cannot be decoded, otherwise mask out with a null value.

Returns:



52
53
54
# File 'lib/polars/binary_name_space.rb', line 52

def decode(encoding, strict: true)
  super
end

#encode(encoding) ⇒ Series

Encode a value using the provided encoding.

Parameters:

  • encoding ("hex", "base64")

    The encoding to use.

Returns:



62
63
64
# File 'lib/polars/binary_name_space.rb', line 62

def encode(encoding)
  super
end

#ends_with(sub) ⇒ Series

Check if string values end with a binary substring.

Parameters:

  • sub (String)

    Suffix substring.

Returns:



29
30
31
# File 'lib/polars/binary_name_space.rb', line 29

def ends_with(sub)
  super
end

#starts_with(sub) ⇒ Series

Check if values start with a binary substring.

Parameters:

  • sub (String)

    Prefix substring.

Returns:



39
40
41
# File 'lib/polars/binary_name_space.rb', line 39

def starts_with(sub)
  super
end