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