Module: Numo::ArrowConvertable
- Defined in:
- lib/arrow-numo-narray/to-arrow.rb
Instance Method Summary collapse
Instance Method Details
#to_arrow ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/arrow-numo-narray/to-arrow.rb', line 17 def to_arrow data = to_binary Arrow::Tensor.new(arrow_data_type, Arrow::Buffer.new(data), shape, nil, nil) end |
#to_arrow_array ⇒ Object
26 27 28 |
# File 'lib/arrow-numo-narray/to-arrow.rb', line 26 def to_arrow_array to_arrow.to_arrow_array end |