Closed Konrad982 closed 4 years ago
I try to solve this myself
A quickfix to get a usable numpy array is to use .to_numpy().T[0]
or .to_numpy().flatten()
, e.g.
total_cases = JHU.get_confirmed(country="France",begin_date=bd,end_date=ed).to_numpy().T[0]
I did not find the cause for the difference to the RKI method however. I stumbled on this when modifying the one bundesland script to use JHU data for France.
The data retrieved using the JHU class by e.g. get_confirmed is differently formatted. If it is converted to a numpy array, it is [[2], [4],...] instead of [2,4,...], i.e. apparently an array of arrays.