Sha256: 2b566157ba6e495140f2df0c0cfc2ec71de9f24c8f10e7d753559f7a0b6f463f

Contents?: true

Size: 476 Bytes

Versions: 4

Compression:

Stored size: 476 Bytes

Contents

module DaruLite
  module Accessors
    class DataFrameByRow
      def initialize(data_frame)
        @data_frame = data_frame
      end

      def [](*names)
        @data_frame[*names, :row]
      end

      def []=(*names, vector)
        @data_frame[*names, :row] = vector
      end

      def at(*positions)
        @data_frame.row_at(*positions)
      end

      def set_at(positions, vector)
        @data_frame.set_row_at(positions, vector)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
daru_lite-0.1.3 lib/daru_lite/accessors/dataframe_by_row.rb
daru_lite-0.1.2 lib/daru_lite/accessors/dataframe_by_row.rb
daru_lite-0.1.1 lib/daru_lite/accessors/dataframe_by_row.rb
daru_lite-0.1 lib/daru_lite/accessors/dataframe_by_row.rb