get_data¶
-
get_data
(data_source: str = 'funkeinteraktiv_de', update_data: bool = False) → pandas.core.frame.DataFrame[source]¶ Convenience function to quickly get covid19 data from the supported sources.
- Parameters
data_source ("funkeinteraktiv_de"|"funkeinteraktiv_en"|"JHU", optional) – source from which the data should be fetched, by default “funkeinteraktiv_de”
update_data (bool, optional) – Whether to fetch updated data or not, if the locally saved data doesn’t include today.
- Returns
covid19 DataFrame
- Return type
pd.DataFrame
- Raises
ValueError – If data_source is not supported