how to get covid 19 info pythob code example
Example: python data science corona
from matplotlib import pyplot as pltimport OpenBlenderimport pandas as pdimport json%matplotlib inlineaction = 'API_getObservationsFromDataset'parameters = { 'token':'YOUR_TOKEN_HERE', 'id_dataset':'5e7a0d5d9516296cb86c6263', 'date_filter':{ "start_date":"2020-01-01T06:00:00.000Z", "end_date":"2020-03-11T06:00:00.000Z"}, 'consumption_confirmation':'on', 'add_date' : 'date'}df_confirmed = pd.read_json(json.dumps(OpenBlender.call(action, parameters)['sample']), convert_dates=False, convert_axes=False).sort_values('timestamp', ascending=False)df_confirmed.reset_index(drop=True, inplace=True)df_confirmed.head(10)