Most operations in pandas can be accomplished with operator chaining (groupby, aggregate, apply, etc), but the only way I
pandas
groupby
aggregate
apply
This is unappealing as it requires I assign df to a variable before being able to filter on its values.
df
df[df["column_name"] != 5].groupby("other_column_name")
seems to work: you can nest the [] operator as well. Maybe they added it since you asked the question.
[]