I have 2 columns in my dataframe: ip,geoIP
I want to loop through my df and perform a user defined function to geolocate an IP and fill the geoIP column with the return value from the function.
How can i populate the column geoIP with the output from my user defined function which takes the input of the value of the column ip?