def load_world():
 _DATA_DIR = os.path.join(os.path.expanduser(u'~'), u'.ggplot')
 if (not os.path.exists(_DATA_DIR)):
  os.mkdir(_DATA_DIR)
 f = os.path.join(_DATA_DIR, u'world.csv')
 if os.path.exists(f):
  world = pd.read_csv(f)
 else:
  sys.stderr.write(u'downloading world data set...')
  url = u'https://raw.githubusercontent.com/yhat/ggplot/master/data/world.csv'
  world = pd.read_csv(url)
  world.to_csv(f, index=False)
  sys.stderr.write(u'done!')
 return world

def load_world ( ) : _DATA_DIR = os . path . join ( os . path . expanduser ( u'~' ) , u'.ggplot' ) if ( not os . path . exists ( _DATA_DIR ) ) : os . mkdir ( _DATA_DIR ) f = os . path . join ( _DATA_DIR , u'world.csv' ) if os . path . exists ( f ) : world = pd . read_csv ( f ) else : sys . stderr . write ( u'downloading world data set...' ) url = u'https://raw.githubusercontent.com/yhat/ggplot/master/data/world.csv' world = pd . read_csv ( url ) world . to_csv ( f , index = False ) sys . stderr . write ( u'done!' ) return world
load world map data .