Skip to content

Conversation

@ADITYA-kus
Copy link
Contributor

@ADITYA-kus ADITYA-kus commented Nov 8, 2025

This implements the error message improvement suggested by @mroeschke in issue #62838 .

closes #62838

The new error message provides actionable guidance by suggesting:

  • Replace or remove non-finite values
  • Use nullable integer type (Int64) that supports missing values

This helps beginners discover the proper pandas way to handle this common situation.

@mroeschke mroeschke added the Error Reporting Incorrect or improved errors from pandas label Nov 8, 2025
@mroeschke mroeschke added this to the 3.0 milestone Nov 8, 2025
@mroeschke mroeschke merged commit cd0efe1 into pandas-dev:main Nov 8, 2025
46 checks passed
@mroeschke
Copy link
Member

Thanks @ADITYA-kus

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

Labels

Error Reporting Incorrect or improved errors from pandas

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: ENH: Improve IntCastingNaNError message to suggest solutions for NaN in integer conversion

2 participants