I have written a python program to find and interpolate values for 4 variables as inputs from a an excel file.
I have to run this function in loop more than 1000 times. So, each time I call the function in loop it has to open and read this excel file. Is there a faster way solve this such that the excel file can be stored within the function as pandas dataframe or numpy array and the excel file doesn't have to be called each time whilst iteration?