Skip to content

DEPR: convert_dtypes boolean keywords#65169

Open
jbrockmendel wants to merge 1 commit intopandas-dev:mainfrom
jbrockmendel:depr-62022
Open

DEPR: convert_dtypes boolean keywords#65169
jbrockmendel wants to merge 1 commit intopandas-dev:mainfrom
jbrockmendel:depr-62022

Conversation

@jbrockmendel
Copy link
Copy Markdown
Member

Summary

  • Deprecate the infer_objects, convert_string, convert_integer, convert_boolean, and convert_floating keywords in DataFrame.convert_dtypes and Series.convert_dtypes
  • Internal callers (groupby, JSON reader) bypass the public API to avoid emitting user-facing warnings
  • Added dedicated test for the deprecation warnings

closes #62022

Test plan

  • All existing convert_dtypes tests pass (1777 tests)
  • JSON IO tests pass (485 tests)
  • Groupby size tests pass
  • SPSS IO tests pass (no deprecated kwargs used)
  • mypy clean on changed files
  • pre-commit hooks pass

🤖 Generated with Claude Code

@jbrockmendel jbrockmendel added the Deprecate Functionality to remove in pandas label Apr 11, 2026
@jbrockmendel jbrockmendel marked this pull request as ready for review April 11, 2026 22:51
Deprecate the infer_objects, convert_string, convert_integer,
convert_boolean, and convert_floating keywords in
DataFrame.convert_dtypes and Series.convert_dtypes.

closes pandas-dev#62022

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Deprecate Functionality to remove in pandas

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DEPR: convert_dtypes keywords

1 participant