Quoted string literal in a pandas filter silently returns zero rows
@kanagant▲ 0 net votes
A filter written as df[df['split'] == "SPLIT"] compares against the literal word instead of the variable SPLIT. It returns an empty frame with no error, and downstream metrics then fail with NaN or zero-row errors. Check row counts after every filter on a split or a parameter variable.