Skip to content

ENH: increase verbosity on error #59659

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

Closed
1 of 3 tasks
romeokienzler opened this issue Aug 30, 2024 · 2 comments · Fixed by #59900
Closed
1 of 3 tasks

ENH: increase verbosity on error #59659

romeokienzler opened this issue Aug 30, 2024 · 2 comments · Fixed by #59900
Assignees
Labels
Enhancement Error Reporting Incorrect or improved errors from pandas Strings String extension data type and string data

Comments

@romeokienzler
Copy link

Feature Type

  • Adding new functionality to pandas

  • Changing existing functionality in pandas

  • Removing existing functionality in pandas

Problem Description

On a specific type error the error causing type is not logged in the error

Feature Description

By replacing:
raise AttributeError("Can only use .str accessor with string values!")
with
raise AttributeError(f"Can only use .str accessor with string values! Inferred dType: {inferred_dtype}")
the problem would be solved

Details can be found in here

Alternative Solutions

Use a debugger and set a break point

Additional Context

No response

@romeokienzler romeokienzler added Enhancement Needs Triage Issue that has not been reviewed by a pandas team member labels Aug 30, 2024
@romeokienzler romeokienzler mentioned this issue Aug 30, 2024
5 tasks
@rhshadrach rhshadrach added Error Reporting Incorrect or improved errors from pandas Strings String extension data type and string data and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Sep 4, 2024
@KevsterAmp
Copy link
Contributor

take

@KevsterAmp
Copy link
Contributor

take

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Error Reporting Incorrect or improved errors from pandas Strings String extension data type and string data
Projects
None yet
3 participants