-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
Closed
Labels
EnhancementError ReportingIncorrect or improved errors from pandasIncorrect or improved errors from pandasStringsString extension data type and string dataString extension data type and string data
Description
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
Metadata
Metadata
Assignees
Labels
EnhancementError ReportingIncorrect or improved errors from pandasIncorrect or improved errors from pandasStringsString extension data type and string dataString extension data type and string data