Sha256: 27774beb4fbb22b7c4a0990fe7fccaae95c0ab38d8d9796944d3e797c6328fe6

Contents?: true

Size: 132 Bytes

Versions: 7

Compression:

Stored size: 132 Bytes

Contents

class Polars::DataFrame
  def to_hash
    if columns.count == 2
      to_a.map(&:values).to_h
    else
      self
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
easy_ml-0.2.0.pre.rc52 config/initializers/dataframe.rb
easy_ml-0.2.0.pre.rc51 config/initializers/dataframe.rb
easy_ml-0.2.0.pre.rc50 config/initializers/dataframe.rb
easy_ml-0.2.0.pre.rc49 config/initializers/dataframe.rb
easy_ml-0.2.0.pre.rc48 config/initializers/dataframe.rb
easy_ml-0.2.0.pre.rc47 config/initializers/dataframe.rb
easy_ml-0.2.0.pre.rc46 config/initializers/dataframe.rb