I need to change the value of myCol if a condition is true. If the condition is not true, nothing should happen (if I do else None, it writes None as value to myCol)
tmp_df = someDataframe.groupby('ID').myCol.apply(lambda x: 'a' if (x=='A').any() else *DO NOTHING, THE myCol VALUE HAS TO STAY SAME*)
tmp_df=tmp_df.to_frame()