Class: Rust::DataFrameHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/rust/core/types/dataframe.rb

Overview

Represents a hash of DataFrame

Instance Method Summary collapse

Instance Method Details

#bind_allObject

Returns a data-frame with the rows in all the data-frames together (if compatible).



655
656
657
658
659
660
661
662
663
664
665
# File 'lib/rust/core/types/dataframe.rb', line 655

def bind_all
    return nil if self.values.size == 0
    
    result = self.values.first.clone
    
    for i in 1...self.values.size
        result .bind_rows!(self.values[i])
    end
    
    return result
end