我有一个数据框“moment_f”。我必须从 moment_f 中删除一些包含名称“AH”的行。但是我不会删除每个“AH”行,所以我创建了一个包含我要删除的“AH”的新数据框。
ah1 = moment_f[moment_f["TextGridLabel"] == "AH"]
ah_d = ah1.iloc[::2]
# got the odd rows of "AH" which is what I need to get rid of from the original dataframe "moment_f".
所以现在我想从数据帧“moment_f”中删除数据帧“ah_d”。
串联的反面是什么?我试过drop,split等,但它不起作用。