I am trying to use multiple conditions to select multiple columns on a pandas DataFrame using the following:
df = pd.DataFrame(wks.get_all_records())
print(df[df["COLUMN_NAME"] == 1][df["COLUMN_NAME_2"] == "CONDITION_2"][["COL_A", "COL_B", "COL_C"]])
It does work, but also returns:
UserWarning: Boolean Series key will be reindexed to match DataFrame index
I'm trying to filter the DataFrame using conditions and write it to an Excel worksheet after it, so I'm not sure if this warning will have some impact afterwards.