Pandas version checks

  • [X] I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.core.groupby.DataFrameGroupBy.transform.html https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.core.groupby.SeriesGroupBy.transform.html

Documentation problem

the current doc does not indicate that a string is accepted as a function parameter transform in groupby.transform().

Suggested fix for documentation

docs for transform need to indicate that the function parameter in groupby.transform() can be a string function name, and that an example should be included.

Comment From: PranshuKaushal

I would like to work on this. Assign me this issue please.

Comment From: ramvikrams

I would like to work on this. Assign me this issue please.

you are free to create a pr, anyone who's pr will be submitted first will be considered

Comment From: yuvanist

take

Comment From: seanjedi

@ramvikrams I will take your word on this comment: https://github.com/pandas-dev/pandas/issues/49961#issuecomment-1332572617 I created a PR here that I believe should fix this in the docs: https://github.com/pandas-dev/pandas/pull/50002

Comment From: ramvikrams

@ramvikrams I will take your word on this comment: #49961 (comment) I created a PR here that I believe should fix this in the docs: #50002

thanks fot your commit, can please also add an example for that, and I feel it should be like It accepts a string, can also accept a Numba JIT function

Comment From: seanjedi

@ramvikrams I added this PR here for the comment you made here: https://github.com/pandas-dev/pandas/issues/49961#issuecomment-1334671820 New PR: https://github.com/pandas-dev/pandas/pull/50029

Please review and approve if this is what you meant