I am looping over a pandas DataFrame and trying to perform ANOVA. I have the arguments to the function stored in a list, but don't know how to enter all of the list arguments into the function as separate arguments. As I am looping through many columns, the length of the list is different every time. Is there any way to do this?
What I want is this:
list_of_args = [array1, array2, array3]
stats.f_oneway(array1,array2,array3)