Method: Rust::DataFrame#fast_row

Defined in:
lib/rust/core/types/dataframe.rb

#fast_row(i) ⇒ Object

Returns the i-th row of the data-frame. Faster (but harder to interpret) alternative to #row.



62
63
64
65
66
67
68
# File 'lib/rust/core/types/dataframe.rb', line 62

def fast_row(i)
    if i < 0 || i >= self.rows
        return nil
    else
        return @labels.map { |label| @data[label][i] }
    end
end