rules/polars/polars-pandas-api-name.md

Polars frames expose a different API from pandas. Use the matching Polars method or expression.

diff
1-df.groupby("x")
2+df.group_by("x")

What the rule reports

Thirteen AttributeError results on Polars DataFrame, LazyFrame, and Series (groupby, merge, apply, loc, iloc, iterrows, fillna, dropna, sort_values, reset_index, set_index, isna, and notna).

How to fix it

Use xpd check --fix --unsafe-fixes to rename direct one-to-one pandas names (groupby, fillna, dropna, sort_values, isna, notna) to their Polars equivalents. Edit other forms by hand.