Skip to content

fix: correct error message for merge_asof tolerance validation#66298

Open
muhamedfazalps wants to merge 1 commit into
pandas-dev:mainfrom
muhamedfazalps:fix/merge-asof-tolerance-message
Open

fix: correct error message for merge_asof tolerance validation#66298
muhamedfazalps wants to merge 1 commit into
pandas-dev:mainfrom
muhamedfazalps:fix/merge-asof-tolerance-message

Conversation

@muhamedfazalps

Copy link
Copy Markdown

Fixes #66289

The error message for invalid tolerance in merge_asof said "tolerance must be positive" but the guard only rejects strictly negative values (< 0), meaning tolerance=0 (exact-match-only) is valid and accepted.

This changes the error message to "tolerance must be non-negative" to match the actual behavior.

---\n\nbuymeacoffee.com/muhamedfazalps

The error message said 'tolerance must be positive' but the check
allows tolerance=0 (exact-match-only), which is non-negative.
Changed to 'tolerance must be non-negative' to match the actual behavior.

Fixes pandas-dev#66289
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: merge_asof says "tolerance must be positive" but accepts tolerance=0

1 participant