Filtering DataFrames with the .query() Method in Pandas
Ben Cook • Posted 2021-02-19 • Last updated 2021-10-15Pandas provides a .query() method on DataFrame’s with a convenient string syntax for filtering DataFrames. This post describes the method and gives simple usage examples.