-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: Reflect changes from numpy
namespace refactor Part 3
#54579
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: Reflect changes from numpy
namespace refactor Part 3
#54579
Conversation
@@ -507,7 +507,7 @@ def test_concat_duplicate_indices_raise(self): | |||
concat([df1, df2], axis=1) | |||
|
|||
|
|||
@pytest.mark.parametrize("dt", np.sctypes["float"]) | |||
@pytest.mark.parametrize("dt", np.core.sctypes["float"]) |
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.
If it's not good practice to import from np.core
, could you just replace this with the float_numpy_dtype
fixture?
@@ -522,7 +522,7 @@ def test_concat_no_unnecessary_upcast(dt, frame_or_series): | |||
|
|||
|
|||
@pytest.mark.parametrize("pdt", [Series, DataFrame]) | |||
@pytest.mark.parametrize("dt", np.sctypes["int"]) | |||
@pytest.mark.parametrize("dt", np.core.sctypes["int"]) |
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.
Same but with any_signed_int_numpy_dtype
Thanks @mtsokol |
…pace refactor Part 3
… namespace refactor Part 3) (#54583) Backport PR #54579: ENH: Reflect changes from `numpy` namespace refactor Part 3 Co-authored-by: Mateusz Sokół <[email protected]>
…ev#54579) * ENH: Reflect changes from numpy namespace refactor part 3 * ENH: Move to fixtures for dtype access
Hi!
Due to NumPy's main namespace being changed in numpy/numpy#24376, here I update NumPy's imports/aliases: e.g.
np.NaN
andnp.infty
won't be available anymore. Also, a canonical name for NumPy'sfloat
andcomplex
should be used, which arenp.float64
andnp.complex128
.sctypes
will be removed from the top namespace, but its destination is not decided yet - therefore I import it from internalnp.core
for now.