Class: Polars::Field
Overview
Definition of a single field within a Struct
DataType.
Instance Method Summary collapse
-
#initialize(name, dtype) ⇒ Field
constructor
A new instance of Field.
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 |