I have csv file, where I have list of trainings. Some of the trainings have 2 entry lines/rows. One is for on-spot participants and one is for ZOOM clients. I would like my code to go through all the rows and if first 4 symbols in 'Training' column are 'Zoom', then take value from that row and column 'Participants' and add it to previous row. Then delete that row where value was taken.
print(df.loc[df['Training'].str[:4] == 'Zoom'])