[docs]def_parse_table(self):withget_driver()asdriver:# with webdriver.Chrome() as driver:driver.get(self.source_url_ref)table=driver.find_elements_by_tag_name("table")[2]time.sleep(6)returntable.get_attribute("outerHTML")
[docs]defpipe_filter(self,df:pd.DataFrame):df["Daily change in cumulative total"]=pd.to_numeric(df["Daily change in cumulative total"])df["Cumulative total"]=df["Daily change in cumulative total"].cumsum()df=df[df["Daily change in cumulative total"]!=0]returndf.dropna()