Happy NYE! Hopefully this is the last question of the year from me. I am trying to create a dynamic excel path for python to extract various excel files based on the date, type parameters, etc.
I have created below parameters which I can change base on the file I am trying to retrieve:
date = input() [assign '201912']
type = input() [assign 'abc']
I am trying to figure out a way to incorporate these into the file directory I am asking python to read such that it returns the same result as below:
import pandas as pd
sheet=pd.ExcelFile(r'C:\Information\Management\201912\abc\abc Template 201912.xlsm')
Have tried few different ways but cant seem to get it to work. Any suggestions on this?
Thank you very much!