-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
'IntegerArray' object has no attribute 'T' #32342
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
Comments
In the past we've been hesitant to add useless methods to EAs simply because ndarrays have them. I'm not sure about adding it here. |
Makes sense; surely |
|
This statement is technically correct (the best kind of correct), but there is not at all consensus that "T" is useless. This is just one more in a large pile of things that could be made easier. |
As I said, it’s useless on its own for EAs. It’s potential use comes from writing code that works with both EAs and ndarrays. |
the example from the OP works on master, could use test update: it loses dtype |
Closing in favor of #28385 |
In our case this arose via
.cumsum()
:But it's also true that just calling
.values.T
on a regularint
array works (just a no-op), whereas on anInt64
array it does not. Same is true forAny reason not to just add a no-op
.T
on the base ExtensionArray class..? cc @TomAugspurger in case you have an opinion 🙂The text was updated successfully, but these errors were encountered: