Method: Daru::DataFrame#each_row_with_index

Defined in:
lib/daru/dataframe.rb

#each_row_with_index(&block) ⇒ Object


503
504
505
506
507
508
509
510
511
# File 'lib/daru/dataframe.rb', line 503

def each_row_with_index(&block)
  return to_enum(:each_row_with_index) unless block_given?

  @index.each do |index|
    yield access_row(index), index
  end

  self
end