bccovideda.plot_hist_by_cond

Module Contents

Functions

plot_hist_by_cond(startDate, endDate, condition)

Plots the number of Covid19 cases with respect to the condition(per Age Group

bccovideda.plot_hist_by_cond.plot_hist_by_cond(startDate, endDate, condition)[source]

Plots the number of Covid19 cases with respect to the condition(per Age Group or Region) using histogram for the period specified by startDate and endDate

Parameters
  • startDate (string) – the start date of the period (no earlier than ‘2020-01-29’)

  • endDate (string) – the end date of the period (no later than today)

  • condition (string) – Available condition - Age, Region

Returns

plot – An altair plot object displaying histogram

Return type

altair.Chart object

Examples

>>> plot_hist_by_cond("2021-01-01", "2021-12-31", "Age")