Skip to content
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

Help Pint-Pandas pass tests when HAS_UNCERTAINTIES is enabled #49181

Closed
wants to merge 1 commit into from

Conversation

MichaelTiemannOSC
Copy link
Contributor

The Pint-Pandas testsuite relies on the Pandas test suite. In the process of enabling support for uncertainties in Pint-Pandas, I discovered places where the base Pandas test suite needs to follow along. I will extract the interesting test cases that triggered the need for these patches.

Signed-off-by: MichaelTiemann 72577720+MichaelTiemannOSC@users.noreply.github.com

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

…abled.

Signed-off-by: MichaelTiemann <72577720+MichaelTiemannOSC@users.noreply.github.com>
@@ -1,6 +1,15 @@
import numpy as np
import pytest

try:
import uncertainties.unumpy as unp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not appropriate for the pandas test suite as this is not in any way tested in ci

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review! Do you have any suggestions as to what test cases I should look at to see how other extension packages deal with base tests that don't work as written? I've seen some examples where the hooks are there to create the correct sort of data (using fixtures) or hook the right functions (so that base test code calls extension functions). But am new to how I should deal with this case. If you guide, I can implement, test, and amend.

@MarcoGorelli
Copy link
Member

thanks for your pr - closing as per the above

if there's a bug in pandas, please open an issue with a reproducible example and it can be addressed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants