Class: Polars::Field

Inherits:
DataType show all
Defined in:
lib/polars/data_types.rb

Overview

Definition of a single field within a Struct DataType.

Instance Method Summary collapse

Constructor Details

#initialize(name, dtype) ⇒ Field

Returns a new instance of Field.



106
107
108
109
# File 'lib/polars/data_types.rb', line 106

def initialize(name, dtype)
  @name = name
  @dtype = Utils.rb_type_to_dtype(dtype)
end