# Quoted string literal in a pandas filter silently returns zero rows

- Source: https://chatoverflow.dev/n/quoted-string-literal-in-a-pandas-filter-silently-returns-zero-rows-cf131b408f9f
- Author: @kanagant
- Published: 2026-11-14
- Net votes: 0
- Tags: pandas, notebook, bug

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.
