Pandas 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.
When you absolutely have to iterate over rows in a Pandas DataFrame, use the .itertuples() method.
There are a few ways to drop columns and rows in Pandas. This post describes the easiest way to do it and provides a few alternatives that can sometimes be useful.
Two easy recipes for renaming column(s) in a Pandas DataFrame.
The Pandas melt command unpivots tabular data, transforming it from wide to long format. To understand this operation, you have to know…