Skip to content

Instantly share code, notes, and snippets.

@marcotc
Last active January 10, 2017 04:05
Show Gist options
  • Save marcotc/441399b8210d6a1757ba0e601394c754 to your computer and use it in GitHub Desktop.
Save marcotc/441399b8210d6a1757ba0e601394c754 to your computer and use it in GitHub Desktop.
Test
Display the source blob
Display the rendered blob
Raw
gem 'nyaplot', '0.1.5'
require 'nyaplot'
require 'mapnya'
raw_df = Nyaplot::Countries.df
hash = [:name, :lat, :lng, :area].map{|label| {label => raw_df.column(label).to_a}}.reduce({}){|memo, hash| memo.merge(hash)}
df = Nyaplot::DataFrame.new(hash)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment