JHU data

Hi,
I am trying to get the COVID confirmed cases number from Dbnomics with Python.

I am using :
df = fetch_series(‘JHU’,
‘confirmed’,
max_nb_series=300)

But I have an error message :
KeyError: ‘province’

I also tried to get just USA data :
df = fetch_series(‘JHU’,
‘confirmed’,
series_code=“USA”,
max_nb_series=300)
I get the same error message.

I also tried
df = fetch_series(‘JHU/confirmed/USA’)
but same result.

And finally I did also but with the same result :
df = fetch_series_by_api_link(‘https://api.db.nomics.world/v22/series/JHU/deaths?limit=1000&offset=0&q=&observations=1&align_periods=1&dimensions={“frequency”%3A[“D”]}’,
max_nb_series=300)

Last but not the list, all the previous method work fine when I select a province (for example JHU/deaths/CAN-albe)

It is like if the series code is not correct for countries only dimension

I think I miss something about province parameter but I do not know how to fix it.

Any suggestions ?

Hi,

indeed there is a bug in the dbnomics Python package. I could reproduce it so I created the issue ticket https://git.nomics.world/dbnomics-fetchers/management/-/issues/724

Please follow up on the issue directly.