lib/yquotes.rb in yquotes-1.5.0 vs lib/yquotes.rb in yquotes-1.7.0
- old
+ new
@@ -48,10 +48,11 @@
# sort from earlier to latest
df = df.sort ['Date']
# strip columns and create index
- df.rename_vectors 'Volume' => :volume, 'Adj Close' => :adj_close, 'Open' => :open, 'Close' => :close, 'High' => :high, 'Low' => :low
+ df.rename_vectors 'Volume' => :volume, 'Adj Close' => :adj_close, 'Open' => :open
+ df.rename_vectors 'Close' => :close, 'High' => :high, 'Low' => :low, 'Date' => :date
d = df.filter(:row) { |row| row[:volume] > 0 }
end
end
end