I'm trying to write some code that begins with pulling data from an Excel workbook that is dropped daily into a folder OR pulled from an email attachment.
The workbook has a naming function like this: Workbook 20190821
(tomorrow the workbook name will be Workbook 20190822
I would like to make this process as touch-free as possible so is there a way to channel pandas.read_excel()
(or some other function) that can handle rolling dates?
Barring some built-in method already available in Python
, I wonder if a For Loop that increases by business day and then saves as Path
name would work?