pandas get average of columns that matching code example Example: calculating mean for pandas column df["columnName"].mean()