def METHOD_NAME(from_date,to_date,data):
    '''
    DESCRIPTION:
    get_data will obtain data between two defined dates from the national grid's online database.
    Taking advantage of the Selenium library for interaction with webpages and Beautiful Soup for 
    the extraction of html tables
    INPUTS:
    from_date:      A date that the start of data to be obtained is required in the form 'DD,MM,YYYY'
    to_date:        A date that the end of data to be obtained is required in the form 'DD,MM,YYYY'
    data:           An array containing values of consecutuve folder numbers to click on/obtain data from
    OUTPUTS:
    table:          A pandas dataframe containing all information specified 
    NOTES:
    the 'data' array is currently the least 'flexible' aspect of this code, for example it is obtained 
    through manual interaction with the online database, however once obtained for the data needed
    it can be stored and reused. For now is relatively fine as only certain information is required from 
    the database.
    '''
    #--- opening the database in a firefox window ---#
    driver = webdriver.Firefox() 
    driver.get("https://mip-prd-web.azurewebsites.net/DataItemExplorer")
    wait = WebDriverWait(driver,10)
    #--- clicking through the file tree ---#
    base_text = '/html/body/div[1]/div/div[2]/div[2]/div/div'
    end_text = '/span/span[1]'
    add_text = ''
    for i in range(len(data)):
        if i == len(data)-1:
            end_text = '/span/span[2]'
        add_text += '/ul/li['+data[i]+']' 
        complete_text = base_text + add_text + end_text 
        wait.until(ec.visibility_of_element_located\
            ((By.XPATH,complete_text))).click()
    #--- inserting dates required ---#
    wait.until(ec.element_to_be_clickable((By.ID,"applicableForRadioButton"))).click()
    wait.until(ec.element_to_be_clickable((By.ID,"FromDateTime"))).clear()
    wait.until(ec.element_to_be_clickable((By.ID,"FromDateTime"))).send_keys(from_date)
    wait.until(ec.element_to_be_clickable((By.ID,"ToDateTime"))).clear()
    wait.until(ec.element_to_be_clickable((By.ID,"ToDateTime"))).send_keys(to_date)
    wait.until(ec.visibility_of_element_located((By.ID,"viewReportButton"))).click()
    #--- creation of pandas dataframe ---#
    header = []
    for i in range(6):
       header.append(wait.until(ec.visibility_of_element_located\
           ((By.XPATH,"/html/body/div[1]/div[2]/table/thead/tr/th["+str(i+1)+"]"))).text)
    html = driver.page_source
    soup = bs.BeautifulSoup(html,'lxml')
    driver.quit()
    table = []
    for tr in soup.find_all('tr')[1:]:
        tds = tr.find_all('td')
        row = []
        for i in tds:
            row.append(i.text)
        table.append(row)
    table = pd.DataFrame(table)
    table.columns = header
    return table