class Nyaplot::Countries

The wrapper for countries @see github.com/mledoze/countries @see nbviewer.ipython.org/github/domitry/Nyaplot/blob/master/examples/notebook/Mapnya.ipynb

Public Class Methods

cca3_list() click to toggle source

CCA3 country code @return [Array<String>] tye list of cca3 code

# File lib/mapnya/countries.rb, line 34
def cca3_list
  @@df[:cca3].to_a
end
countries_list() click to toggle source

World countries list @return [Array<String>] the list of world countries

# File lib/mapnya/countries.rb, line 28
def countries_list
  @@df[:name].to_a
end
df() click to toggle source

The dataframe as the wrapper of countries @return [DataFrame]

# File lib/mapnya/countries.rb, line 40
def df
  @@df
end