---------------------------------------------------------------------------
HTTPError Traceback (most recent call last)
<ipython-input-9-3c1a10ad153d> in <module>()
1 # incidenza di povertà assoluta individuale (per 100 individui con le stesse caratteristiche)
----> 2 df_n = df_pov(ds_poverta_assoluta,spec_n, 'Nord')
3 df_s = df_pov(ds_poverta_assoluta,spec_s, 'Sud')
4 df_s
<ipython-input-7-12a873644ac7> in df_pov(ds, spec, nome)
1 def df_pov(ds, spec, nome):
----> 2 c = ds.getvalues(spec)
3 ds = c.dataset(0)
4 df = ds.to_data_frame('Tempo e frequenza')
5 df.reset_index(level=0, inplace=True)
/Users/cesar/anaconda/lib/python3.6/site-packages/istat/istat_dataset.py in getvalues(self, spec, rtype)
159 spec = ",".join(map(str, dim_values_array))
160
--> 161 json_data = self.__istat_helper.datajson(self.__dataset['Cod'], spec, show=False)
162
163 if rtype == jsonstat.JsonStatCollection:
/Users/cesar/anaconda/lib/python3.6/site-packages/istat/istat_helper.py in datajson(self, dataset, dim, show)
249 filename = "istat-datajson-{}-{}-{}.json".format(dataset, dim, self.__lang2str())
250 try:
--> 251 json_string = self.__dwl.download(uri, filename)
252 json_data = json.loads(json_string)
253 if show:
/Users/cesar/anaconda/lib/python3.6/site-packages/jsonstat/downloader.py in download(self, url, filename, time_to_live)
55 if time_to_live == 0 or not self.__is_cached(pathname):
56 response = self.__session.get(url)
---> 57 response.raise_for_status()
58 html = response.text
59 self.__write_page_to_cache(pathname, html)
/Users/cesar/anaconda/lib/python3.6/site-packages/requests/models.py in raise_for_status(self)
842
843 if http_error_msg:
--> 844 raise HTTPError(http_error_msg, response=self)
845
846 def close(self):
HTTPError: 500 Server Error: Internal Server Error for url: http://apistat.istat.it/?q=getdatajson&dataset=DCCV_POVERTA&dim=3,15,0,0,0,0,0,0,0,0,0&lang=0