slopes
- Model
- Chart
Load cases and find slope over period.
Source Code: [link]
openbb.alt.covid.slopes(days_back: int = 30, limit: int = 50, threshold: int = 10000, ascend: bool = False)
Parameters
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| days_back | int | Number of historical days to consider | 30 | True |
| limit | int | Number of rows to show | 50 | True |
| threshold | int | Threshold for total number of cases | 10000 | True |
| ascend | bool | Flag to sort in ascending order | False | True |
Returns
| Type | Description |
|---|---|
| pd.DataFrame | Dataframe containing slopes |
Prints table showing countries with the highest case slopes.
Source Code: [link]
openbb.alt.covid.slopes_chart(days_back: int = 30, limit: int = 10, threshold: int = 10000, ascend: bool = False, export: str = "")
Parameters
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| days_back | int | Number of historical days to get slope for | 30 | True |
| limit | int | Number to show in table | 10 | True |
| ascend | bool | Flag to sort in ascending order | False | True |
| threshold | int | Threshold for total cases over period | 10000 | True |
| export | str | Format to export data | True |
Returns
This function does not return anything