Closed pedrorio closed 7 years ago
Thanks for your report. We'll have a look shortly.
@pedrorio could you please show us the DataFrame you are working with?.. Basic tests for #head
and #tail
seems to be working, as well as my manual testing.
DataFrame head and tail doesn't work if it has DateTimeIndex duplicate of https://github.com/SciRuby/daru/issues/331 You can reproduce using below code
require 'daru'
date_array = ['2017-01-01', '2017-02-01', '2017-03-01']
vector_array = ['a', 'b', 'c']
idx = Daru::DateTimeIndex.new(date_array)
df = Daru::DataFrame.new({col1: vector_array}, index: idx)
p df.head
This is fixed and should be closed.
Hello, I was trying to backtest some bitcoin investing strategies and the #tail and #head methods do not work unless I specify a Daru::Vector.
For instance,
p df[0].tail works
butp df.tail
does not.I was using daru from rubygems and changed the gem source to this github repo but the #summary method also broke. I am using a Daru::DateTimeIndex index.
Here is my error: