Sha256: 9c37f161715c60069da278a8dc725bcc1b745400344ba6f60781fb3a37d751c7

Contents?: true

Size: 294 Bytes

Versions: 6

Compression:

Stored size: 294 Bytes

Contents

module Daru
  module Accessors
    class DataFrameByRow
      def initialize data_frame
        @data_frame = data_frame
      end

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
daru-0.1.2 lib/daru/accessors/dataframe_by_row.rb
daru-0.1.1 lib/daru/accessors/dataframe_by_row.rb
daru-0.1.0 lib/daru/accessors/dataframe_by_row.rb
daru-0.0.5 lib/daru/accessors/dataframe_by_row.rb
daru-0.0.4 lib/daru/accessors/dataframe_by_row.rb
daru-0.0.3.1 lib/daru/accessors/dataframe_by_row.rb