I am stuck with my pandas script.
Actually , i am working with two csv file(one input and the other output file). i want to copy all the rows of two column and want to m
In df2.apply(lambda x: calculate_latoffset(x[b]), axis=1) you are creating a 5 column dataframe and you were trying to assign the value to a single field. Do df2[a] = calculate_latoffset(df2[b]) instead should deliver the desired output.
df2.apply(lambda x: calculate_latoffset(x[b]), axis=1)
df2[a] = calculate_latoffset(df2[b])