Method: Rust::DataFrame.pull_variable

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

.pull_variable(variable, type, klass) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/rust/core/types/dataframe.rb', line 13

def self.pull_variable(variable, type, klass)
    hash = {}
    colnames = Rust["colnames(#{variable})"]
    colnames.each do |col|
        hash[col] = Rust["#{variable}$\"#{col}\""]
    end
    return DataFrame.new(hash)
end