iloc with boolean mask · Issue #3631 · pandas-dev/pandas (original) (raw)
Currently masking by boolean vectors it doesn't matter which syntax you use:
df[mask]
df.iloc[mask]
df.loc[mask]
are all equivalent. Should mask df.iloc[mask]
mask by position? (this makes sense if mask is integer index).
This SO question.