-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
ENH: Set __module__ on StringDtype #60261
Conversation
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
@@ -532,6 +537,8 @@ def _str_map_nan_semantics( | |||
|
|||
# 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
@@ -374,6 +378,7 @@ def __from_arrow__( | |||
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'
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
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.rst
file if fixing a bug or adding a new feature.