Closed
Description
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
Documentation problem
I am currently trying to work on the issue #59592, specifically for the remove_categories and rename_categories methods. Before finalizing my changes, I need some clarification on a few points regarding the documentation:
*args
and**kwargs
Usage:
- For remove_categories, the method only seems to use the removals parameter.
- Similarly, for rename_categories,
*args
and**kwargs
are mentioned but not utilized in the method implementation. Could you clarify whether the inclusion of*args
and**kwargs
in the documentation for methods is by design? - I have noticed this pattern across many methods and wanted to confirm if this is intentional or if the documentation should be updated to reflect actual usage.
inplace
Parameter: Theinplace
parameter for methods is included in the error codes of the validation docstring. However, it is not explicitly mentioned in the current documentation, nor is it included as part of the method definition for both methods.
Suggested fix for documentation
Verify usage of **args
, **kwargs
, and 'inplace' if not make changes to the pandas.Series.cat
methods in docs.