It can be lengthy to filter columns of a pandas DataFrame using brackets. To shorten the filtering statements, use df.query
instead.
It can be lengthy to filter columns of a pandas DataFrame using brackets. To shorten the filtering statements, use df.query
instead.