-
-
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
TST (string dtype): remove usage of 'string[pyarrow_numpy]' alias #59758
TST (string dtype): remove usage of 'string[pyarrow_numpy]' alias #59758
Conversation
result = obj.rank(method="first") | ||
exp_dtype = "Int64" if string_dtype_no_object.na_value is pd.NA else "float64" |
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.
Hmm why are these int64 for some types now? I think float is required for the return type to allow for some tiebreakers
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.
Ah, good point! But so that is an existing bug in the ArrowExtensionArray
implementation then, because this test was already asserting Int64 (I just rewrote it a bit, but in the removed parametrization a few lines above there is already this dtype)
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.
Ah ok...interesting!
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.
Opened a separate PR to address this -> #59768
…remove-usage-pyarrow_numpy-alias
Removes all remaining usages of
"string[pyarrow_numpy]"
, the to-be deprecated string alias for the future default string dtype (will then actually deprecate it in a follow-up PR).xref #54792