Skip to content

DOC: Docs for groupby.transform() should mention that function parameter can be a string in transform  #49961

Closed
@ramvikrams

Description

@ramvikrams

Pandas version checks

  • 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions