DOCS: fix docstring validation errors for groupby.DataFrameGroupBy.filter, groupby.SeriesGroupBy.filter
Address issues like #56804

Fixes docstrings within code_checks.sh
DOC string fix for both groupby.DataFrameGroupBy.filter and groupby.SeriesGroupBy.filter
Thanks @ivanpan0626 