Re: Passing all pandas DataFrame columns to function as separate parameters

2018-05-02 Thread zljubisic
Thomas, thank you very very much, this was exactly what I needed. Thanks again and best regards. -- https://mail.python.org/mailman/listinfo/python-list

Re: Passing all pandas DataFrame columns to function as separate parameters

2018-04-27 Thread Thomas Jollans
On 27/04/18 15:50, zljubi...@gmail.com wrote: > Hi, > > I have pandas DataFrame with several columns. I have to pass all columns as > separate parameter to a function. > > Something like this if I have 4 columns. > > f, p = stats.f_oneway(df_piv.iloc[:, 0], df_piv.iloc[:, 1], df_piv.iloc[:, >

Passing all pandas DataFrame columns to function as separate parameters

2018-04-27 Thread zljubisic
Hi, I have pandas DataFrame with several columns. I have to pass all columns as separate parameter to a function. Something like this if I have 4 columns. f, p = stats.f_oneway(df_piv.iloc[:, 0], df_piv.iloc[:, 1], df_piv.iloc[:, 2], df_piv.iloc[:, 3]) As number of columns varies, how to do