Querying for NaN and other names in Pandas January 8, 2023 by Tarik According to this answer you can use: df.query('value < 10 | value.isnull()', engine="python") I verified that it works.