So I have function that does some stuff that I need to run: TestRun(x)
I have an array of these that I want to run in a loop, but I need to define them such as df_(x) = TestRun(x)
. The actual code that I am trying to loop looks like the below:
df_0 = TestRun(0); df_1 = TestRun(1); df_2 = TestRun(2);
I have a few thousand of these and would like to make it simular but need some help to get it to work. Everything I have tried has failed thus far.
I was thinking something like this but it doesn't work:
x = 0
while x < int(5):
temp = "df_" + str(x) = TestRun(x)
return temp
x += 1
It's important that the scrip actually run the function as it loops through.