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

      Daru::Vector.new(each_row.map(&block), index: @index)
    end
Retrieves a Daru::Vector, based on the result of calculation
performed on each row.