Sha256: 7e923308fb1cbca2f217f850e61516bbe572a5e07770833e9ba722791c999620

Contents?: true

Size: 469 Bytes

Versions: 8

Compression:

Stored size: 469 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 []=(*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

8 entries across 8 versions & 1 rubygems

Version Path
daru-0.3 lib/daru/accessors/dataframe_by_row.rb
daru-0.2.2 lib/daru/accessors/dataframe_by_row.rb
daru-0.2.1 lib/daru/accessors/dataframe_by_row.rb
daru-0.2.0 lib/daru/accessors/dataframe_by_row.rb
daru-0.1.6 lib/daru/accessors/dataframe_by_row.rb
daru-0.1.5 lib/daru/accessors/dataframe_by_row.rb
daru-0.1.4.1 lib/daru/accessors/dataframe_by_row.rb
daru-0.1.4 lib/daru/accessors/dataframe_by_row.rb