Skip to content

Updating error message to include more details about dataframe #61929

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hasanrashid
Copy link

Updated error message from
"Must have equal len keys and value when setting with an iterable"
to
f"Length mismatch when setting Dataframe with an iterable: " f"{len(pi)} keys vs {len(value)} values. " f"Keys: {pi}, Values: {value}. " f"Both must have the same length."

@hasanrashid
Copy link
Author

hasanrashid commented Jul 23, 2025

Actually, there are some failing test-indexing.py. Forgot to update the message in the testcase

@mroeschke mroeschke added the Error Reporting Incorrect or improved errors from pandas label Jul 23, 2025
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.

ENH: error message context.
2 participants