pandas set column to value using mask

Solutions on MaxInterview for pandas set column to value using mask by the best coders in the world

showing results for - "pandas set column to value using mask"
Xavier
08 Oct 2018
1df['Event'] = np.where((df.Event == 'Painting'),'Art',df.Event)
2df
similar questions
queries leading to this page
pandas set column to value using mask