Bug fixes, enhancements and some API changes.
This release introduces the following changes:
- Major Enhancements
- Minor Enhancements
- Added a join indicator. (@gnilrets)
- Support an enumerable value as an index of a vector. (Yuichiro Kaneko)
- Add test case for
NegativeDateOffset
. (Yuichiro Kaneko) - Add test case for
#on_offset?
. (Yuichiro Kaneko) NegativeDateOffset#-
returnsDateOffset
. (Yuichiro Kaneko)- Make
Vector#resort_index
private because its only use was for internal usage inVector#sort
. (Yuichiro Kaneko) - Add
DataFrame#order=
method to reorder vectors in a dataframe. (@lokeshh) - Use
Integer
instead ofFixnum
throughout the gem. (Yuichiro Kaneko) - Improve error message of
Daru::Vector#index=
. (@lokeshh) - Deprecate
freqs
and makefrequencies
return aDaru::Vector
. (@lokeshh) DataFrame#access_row
with integer index. (Yusuke Sangenya)- Add method alias for comparison operator. (Yusuke Sangenya)
- Update Nokogiri version. (Yusuke Sangenya)
- Return
Daru::Vector
for multiple modal values forDaru::Vector#mode
. (baarkerlounger)
- Fixes
- Fix many to one joins. The prior version was shifting values in the left dataframe before checking whether values in the right dataframe should be shifted. They both need to be checked at the same time before shifting either. (@gnilrets)
- Support formatting empty dataframes. They were returning an error before. (@gnilrets)
- method_missing in Daru::DataFrame would not detect the correct vector if it was a String. Fixed that. (@lokeshh)
- Fix docs of contrast_code to specify that the default value is false. (@v0dro)
- Fix occurence of SystemStackError due to faulty arguement passing to Array#values_at. (@v0dro)
- Fix
DataFrame#pivot_table
regression that raised an ArgumentError if the:index
option was not specified. (@zverok) - Fix
DateFrame.rows
to accept empty argument. (@zverok) - Fix bug with false values on dataframe create. DataFrame from an Array of hashes wasn't being created properly when some of the values were
false
. (@gnilrets) - Fix
Vector#reorder!
method. (Yusuke Sangenya) - Fix
DataFrame#group_by
for numeric indexes. (@zverok) - Make
DataFrame#index=
accept onlyDaru::Index
. (Yusuke Sangenya) DataFrame#vectors=
now changes the name of vectors contained in the internal@data
variable. (Yusuke Sangenya)