I have the following DataFrame:
In [282]: f
Out[282]:
Strike
01-02-2019 100.0
01-02-2019 105.0
01-02-2019 110.0
01-02-2019 115.0
01-02-2019 120.0
and I want to parse the entry from each position to a method and populate a new column like this:
def method(i,j):
return(i,j)
for i,j in f.index, f.Strike:
f['newcol']=method(i,j)
but am receiving an error. How would I do this?