pandas change every row to df

Solutions on MaxInterview for pandas change every row to df by the best coders in the world

showing results for - "pandas change every row to df"
Aliyah
23 Nov 2019
1for i, row in df.iterrows():
2    ifor_val = something
3    if <condition>:
4        ifor_val = something_else
5    df.at[i,'ifor'] = ifor_val
6