Skip to content

Conversation

@jorisvandenbossche
Copy link
Member

@jorisvandenbossche jorisvandenbossche commented Dec 5, 2025

xref #63144

I just removed the explanation of the keyword entirely (since the keyword is ignored and has no effect anymore), just leaving the deprecation note (and updated that to reflect this is now in effect)

mapping, e.g. {col: dtype, ...}, where col is a column label and dtype is
a numpy.dtype or Python type to cast one or more of the DataFrame's
columns to column-specific types.
copy : bool, default False
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since no one should specify this keyword, we could also just leave out the type part entirely?

Suggested change
copy : bool, default False
copy

(probably would need to suppress some numpydoc linting rule for this method, though)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general for a deprecated parameter, I think we should still keep the type/default/description even if we don't want users to use it. In this case I would update the description to something like

This keyword is now ignored; changing its value will have no impact on the method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants