-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
CLN/INT: remove usage of _internal_get_values #27165
Comments
I'm looking into this now, could use some help from @TomAugspurger in understanding the intent in a couple of cases:
|
I don't think so. I think you can have a StringArray as well. The implementation for non-scalar In [11]: s = pd.Series(['a', None], dtype="string")
In [12]: s.str.repeat([1, 2])
TypeError: descriptor '__mul__' requires a 'str' object but received a 'NAType' will open a separate issue.
Seems reasonable, or we can require the caller to do that, whichever is easier. |
We're on the verge of having removed all usages of This leaves open a few questions:
|
@WillAyd it looks like objToJSON is calling _internal_get_values in |
It will be used for any object that has it defined. I think could just remove that though; I can't think of a situation off the top of my head where it should matter |
We've gotten rid of all of the relevant usages; closing. |
PR #26409 introduced a
_internal_get_values
method for DataFrame, Series, Index, SparseArray and Categorical (in order to deprecate the publicget_values
).There are some remaining cases where
_internal_get_values
is used internally. Eventually, we should try to remove all those cases. For each of those usages, it will need to be inspected what object is actually being handled to choose the appropriate alternative.The text was updated successfully, but these errors were encountered: