covpy/__init__.py
def _get_df(self, force_new=False):
        """ Checks if data has already been downloaded for today's date, and
        if is has not been, it is downloaded.

        Args:
        lookback (int): The number of days to look back for data if today's
                        data is not available.

        force_new (bool): Force data to be redownloaded from the ECDC's website
        """
        today = datetime.date.today()

        if (force_new or self._df.empty or self._df_date != today):
            url = "https://www.ecdc.europa.eu/sites/default/files/documents/COVID-19-geographic-disbtribution-worldwide.xlsx"
            self._df = pd.read_excel(url)
            self._df_date = today
 Checks if data has already been downloaded for today's date, and
        if is has not been, it is downloaded.

        Args:
        lookback (int): The number of days to look back for data if today's
                        data is not available.

        force_new (bool): Force data to be redownloaded from the ECDC's website
        
Checks if data has already been downloaded for today's date, and
if is has not been, it is downloaded.

lookback (int): The number of days to look back for data if today's
data is not available.

force_new (bool): Force data to be redownloaded from the ECDC's website
Checks if data has already been downloaded for today ' s date and if is has not been it is downloaded . lookback ( int ) : The number of days to look back for data if today ' s data is not available . force_new ( bool ) : Force data to be redownloaded from the ECDC ' s website
def _get_df(self, force_new=False):
        today = datetime.date.today()
        if (force_new or self._df.empty or self._df_date != today):
            url = "https://www.ecdc.europa.eu/sites/default/files/documents/COVID-19-geographic-disbtribution-worldwide.xlsx"
            self._df = pd.read_excel(url)
            self._df_date = today
def _get_df ( self , force_new = False ) : today = datetime . date . today ( ) if ( force_new or self . _df . empty or self . _df_date != today ) : url = "https://www.ecdc.europa.eu/sites/default/files/documents/COVID-19-geographic-disbtribution-worldwide.xlsx" self . _df = pd . read_excel ( url ) self . _df_date = today
Checks if data has already been downloaded for today's date, and
if is has not been, it is downloaded.
Checks if data has already been downloaded for today ' s date and if is has not been it is downloaded .
""" Checks if data has already been downloaded for today's date, and
        if is has not been, it is downloaded.

        Args:
        lookback (int): The number of days to look back for data if today's
                        data is not available.

        force_new (bool): Force data to be redownloaded from the ECDC's website
        """
self
force_new