Class: Rust::DataFrameArray

Inherits:
Array show all
Defined in:
lib/rust/core/types/dataframe.rb

Overview

Represents an array of DataFrame

Instance Method Summary collapse

Methods inherited from Array

#_rust_prob_distance, #distribution, #to_R

Instance Method Details

#bind_allObject

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



634
635
636
637
638
639
640
641
642
643
644
# File 'lib/rust/core/types/dataframe.rb', line 634

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