Module: Rust::TestCases

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

Class Method Summary collapse

Class Method Details

.sample_dataframe(columns, size = 100) ⇒ Object



205
206
207
208
209
210
211
# File 'lib/rust/core/rust.rb', line 205

def self.sample_dataframe(columns, size=100)
    result = Rust::DataFrame.new(columns)
    size.times do |i|
        result << columns.map { |c| yield i, c }
    end
    return result
end