-
-
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: Enable assert_almost_equal to test numpy-like zero-dimensional arrays #48919
Comments
take |
Hey @andrewgsavage I am taking this issue. I was wondering why your original CR wasn't accepted. What needed to be changed? |
I made requested changes and was waiting on review. |
@andrewgsavage Did you still want to make the changes and submit another CR? If not, do you mind if I make them for you? |
please be my guest. I don't recall it waiting on any changes.
…On Mon, Aug 7, 2023 at 9:32 PM Kevin ***@***.***> wrote:
@andrewgsavage <https://github.com/andrewgsavage> Did you still want to
make the changes and submit another CR? If not, do you mind if I make them
for you?
—
Reply to this email directly, view it on GitHub
<#48919 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADEMLEGRYLDV37WZZXUNLT3XUFGFVANCNFSM6AAAAAAQ3EKAZM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi @andrewgsavage, in your test: |
Try iterating them:
|
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
is_list_like
was updated to returnFalse
for scalars of numpy-like array implementations. #35131 This has helped pass more extensionarray in pint-pandas .Some tests now fail at assert_..._equal instead of at
is_list_like
, asisiterable
inassert_almost_equal
recognises pint-pandas' scalar, aQuantity
, as iterable since it has an__iter__
method. TheQuantity
willTypeError
since it isn't iterable.I've had a go at this #48920
Feature Description
Add a check for
ndim == 0
, like was done foris_list_like
Alternative Solutions
Currently these tests are xpassed.
Additional Context
No response
The text was updated successfully, but these errors were encountered: