change iterrows() to .loc for large dataframes
change iterrows() to .loc for large dataframes Question: I have 2 data frames, df1 and df2. Based on the condition in df1 that day_of_week == 7 we have to match 2 other column values, (statWeek and statMonth) if the condition matches then we have to replace as_cost_perf from df2 with cost_eu from df1. in other …