Last active
January 10, 2017 04:05
-
-
Save marcotc/441399b8210d6a1757ba0e601394c754 to your computer and use it in GitHub Desktop.
Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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