-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
ENH: Set __module__ on StringDtype #60261
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
ENH: Set __module__ on StringDtype #60261
Conversation
simonjayhawkins
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @espoirMur
a couple of changes needed
pandas/core/arrays/string_.py
Outdated
| # error: Definition of "_concat_same_type" in base class "NDArrayBacked" is | ||
| # incompatible with definition in base class "ExtensionArray" | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please revert these additions
pandas/core/arrays/string_.py
Outdated
| return new_string_array | ||
|
|
||
|
|
||
| @set_module("pandas") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AttributeError: module 'pandas' has no attribute 'BaseStringArray'
simonjayhawkins
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @espoirMur
jorisvandenbossche
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
__module__on top-level public objects #55178doc/source/whatsnew/vX.X.X.rstfile if fixing a bug or adding a new feature.