Most operations in pandas can be accomplished with operator chaining (groupby, aggregate, apply, etc), but the only way I
pandas
groupby
aggregate
apply
My answer is similar to the others. If you do not want to create a new function you can use what pandas has defined for you already. Use the pipe method.
df.pipe(lambda d: d[d['column'] == value])