rename rows pandas based on condiions code example Example: rename rows pandas based on condiions df.loc[(df.Event == 'Dance'),'Event']='Hip-Hop' df