Method: Daru::DataFrame#each_row

Defined in:
lib/daru/dataframe.rb

#each_row(&block) ⇒ Object

Iterate over each row



493
494
495
496
497
498
499
500
501
# File 'lib/daru/dataframe.rb', line 493

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

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

  self
end