I defined a function
def test_function(id):
.....
.....
.....
I was calling that function via
df = test_function('123')
but what I want to do now is, I have another Dataframe df2 =
values
123
354
645
456
176
I want to write an apply function which would take 1 value at a time from df2 and run my test_function instead of manually adding values.
and also my df should be appended for different values, such that df contain a column name 'value' which would be the value selected one at a time