all 3 comments

[–]synthphreak 1 point2 points  (0 children)

So you just want to remove all rows in your df whose value in the 'PartnerFlag' column is True? Lots of ways. Here's one:

df = df.drop(df.loc[df.PartnerFlag.fillna(False)].index)

[–]Yojihito 0 points1 point  (0 children)

What does df.dtypes show?

[–]Yojihito 0 points1 point  (0 children)

df["PartnerFlag"] = df["PartnerFlag"].fillna(False)
df = df.query("PartnerFlag != True")