Beispiel #1
0
 def __call__(self, use_local=True, **kwargs):
     __doc__ = super(Miserables, self).__call__.__doc__
     dct = json.loads(bytes_decode(self.raw(use_local=use_local)), **kwargs)
     nodes = pd.DataFrame.from_records(dct['nodes'], index='index')
     links = pd.DataFrame.from_records(dct['links'])
     return nodes, links
Beispiel #2
0
 def __call__(self, use_local=True, **kwargs):
     __doc__ = super(World_110M, self).__call__.__doc__
     return json.loads(bytes_decode(self.raw(use_local=use_local)),
                       **kwargs)
Beispiel #3
0
 def load_json(path):
     raw = pkgutil.get_data('vega_datasets', path)
     return json.loads(bytes_decode(raw))