I would like to call a function with dynamic parameter input, I am not sure if it is possible, any suggestion is welcome.
The scenario is like below:
I have a function with 5 parameters like this
function(p1=v1, p2=v2, p3=v3, p4=v4,p5=v5)
v1-v5 are saved in an excel file and can be empty, if the value for a parameter is none(nothing entered in the excel), the parameter should not appear when call the function.
For example, if v2=None, when I call the function, it will look like function(p1=v1, p3=v3, p4=v4,p5=v5).
Is it possible by checking the value of each parameter that I can call the function dynamically with parameters that have meaningful value?