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/groupby.html#indexing-iteration

Documentation problem

In the file it is written

GroupBy.get_group(name[, obj])

Suggested fix for documentation

wheras it should be GroupBy.get_group(name, [obj])

Comment From: asishm

Thanks for the report.

The documentation is correct - the [, obj] denotes obj is optional.

See here on how to interpret them. https://stackoverflow.com/questions/1718903/what-do-square-brackets-mean-in-function-class-documentation

Comment From: attack68

@asishm is correct

Comment From: ramvikrams

Thanks for the report.

The documentation is correct - the [, obj] denotes obj is optional.

See here on how to interpret them. https://stackoverflow.com/questions/1718903/what-do-square-brackets-mean-in-function-class-documentation

thanks I didn't know it