lib/daru/maths/arithmetic/dataframe.rb in daru-0.1.0 vs lib/daru/maths/arithmetic/dataframe.rb in daru-0.1.1

- old
+ new

@@ -62,11 +62,11 @@ all_vectors = (self.vectors.to_a | other.vectors.to_a).sort all_indexes = (self.index.to_a | other.index.to_a).sort hsh = {} all_vectors.each do |vector_name| - this = self .has_vector?(vector_name) ? self .vector[vector_name] : nil - that = other.has_vector?(vector_name) ? other.vector[vector_name] : nil + this = self .has_vector?(vector_name) ? self[vector_name] : nil + that = other.has_vector?(vector_name) ? other[vector_name] : nil if this and that hsh[vector_name] = this.send(operation, that) else hsh[vector_name] = Daru::Vector.new([], index: all_indexes, \ No newline at end of file