lib/yquotes.rb in yquotes-0.1.8 vs lib/yquotes.rb in yquotes-0.1.9
- old
+ new
@@ -54,10 +54,10 @@
df = df.sort ['Date']
# strip columns and create index
df.index = Daru::Index.new(df['Date'].to_a)
df.rename_vectors 'Volume' => :volume, 'Adj Close' => :adj_close, 'Open' => :open, 'Close' => :close, 'High' => :high, 'Low' => :low
-
+ df.delete_vector 'Date'
d = df.filter(:row) { |row| row[:volume] > 0}
end
end