I have a Pandas Data Frame (called df) so that one of its columns is called Revenue. I just wanted to change the elements of this column using the lambda function as follows but I have a problem accessing the indices of the elements:
df['Revenue']=df['Revenue'].apply(lambda d: Output:(a function of index of d in Revenue) Conditional statement)
I need to place the index of d inside the lambda function but do not know how to do so.