-2

I am using the following piece of code using python and lambda.

for merged_polygon in merged_polygon_array:

            df_outer['matching_points']=df_outer.apply(lambda df_outer:matched_points(merged_polygon,df_outer) if df_outer['matching_points']!=True else True ,axis=1)

But it is taking more time to iterate.

I want this to be optimized . Can anyone suggest how to optimize?

Thanks

Karthik J
  • 111
  • 2
  • 11

0 Answers0