I would like to apply a function foo(df.column,df.index,df.current value)
and end up with the same dataframe but each cells equal to the result of the function the fastest way possible.
def foo(dates, name, value):
return black_box_function(dates, name, value)
I want dates to be the column of the cell, name to be the index and value to the content of the cell of the data frame.
I try to implement it as df.apply(foo(df['index'], df['column'])
but doesn't work.