lib/eps/data_frame.rb in eps-0.4.1 vs lib/eps/data_frame.rb in eps-0.5.0
- old
+ new
@@ -52,10 +52,10 @@
end
def map
if @columns.any?
size.times.map do |i|
- yield Hash[@columns.map { |k, v| [k, v[i]] }]
+ yield @columns.to_h { |k, v| [k, v[i]] }
end
end
end
def map_rows