I am trying to automate excel tasks in Python using Pandas. I get 3 input data files which I intend to store in a folder and run python script which will read the python script do the data transformation and write an output excel file.
My question is how do I Monitor the folder and run the python script if there is a file there. For example if the excel input files are copy pasted in a defined empty folder1 it should trigger the python script automatically and generate the output file in a defined empty folder2.
I have already made a python script which does the data manipulation by reading the input files and generating the output excel file. How do I go about the automation which triggers the python script?
PS: I work on mac laptop any reference compatible with iOS would be greatly appreciated.