stat
- Model
- Chart
Show historical cases and deaths by country.
Source Code: [link]
openbb.alt.covid.stat(country: str, stat: str = "cases", limit: int = 10)
Parameters
Name | Type | Description | Default | Optional |
---|---|---|---|---|
country | str | Country to get data for | None | False |
stat | str | Statistic to get. Either "cases", "deaths" or "rates" | cases | True |
limit | int | Number of raw data to show | 10 | True |
Returns
Type | Description |
---|---|
pd.DataFrame | Dataframe of data for given country and statistic |
Prints table showing historical cases and deaths by country.
Source Code: [link]
openbb.alt.covid.stat_chart(country: str, stat: str = "cases", raw: bool = False, limit: int = 10, export: str = "", plot: bool = True)
Parameters
Name | Type | Description | Default | Optional |
---|---|---|---|---|
country | str | Country to get data for | None | False |
stat | str | Statistic to get. Either "cases", "deaths" or "rates" | cases | True |
raw | bool | Flag to display raw data | False | True |
limit | int | Number of raw data to show | 10 | True |
export | str | Format to export data | True | |
plot | bool | Flag to plot data | True | True |
Returns
This function does not return anything