-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
REF: move functions out of _testing/__init__ #38961
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
Conversation
@@ -0,0 +1,405 @@ | |||
import bz2 |
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.
why _io.py? this is already a private module.
@@ -0,0 +1,48 @@ | |||
import string | |||
|
|||
import numpy as np |
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 comment
@@ -0,0 +1,174 @@ | |||
from contextlib import contextmanager | |||
import re |
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
@@ -55,6 +39,22 @@ | |||
Series, | |||
bdate_range, | |||
) | |||
from pandas._testing._io import ( # noqa:F401 |
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.
umm why are these ignored?
BC we don’t have __all__
…On Mon, Jan 4, 2021 at 4:18 PM Jeff Reback ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In pandas/_testing/__init__.py
<#38961 (comment)>:
> @@ -55,6 +39,22 @@
Series,
bdate_range,
)
+from pandas._testing._io import ( # noqa:F401
umm why are these ignored?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#38961 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB5UM6CAIQ743IMYOMEU353SYJLFBANCNFSM4VT2H3HA>
.
|
Pet peeve for overlap with stdlib names
…On Mon, Jan 4, 2021 at 4:17 PM Jeff Reback ***@***.***> wrote:
***@***.**** requested changes on this pull request.
------------------------------
In pandas/_testing/_io.py
<#38961 (comment)>:
> @@ -0,0 +1,405 @@
+import bz2
why _io.py? this is *already* a private module.
------------------------------
In pandas/_testing/_random.py
<#38961 (comment)>:
> @@ -0,0 +1,48 @@
+import string
+
+import numpy as np
same comment
------------------------------
In pandas/_testing/_warnings.py
<#38961 (comment)>:
> @@ -0,0 +1,174 @@
+from contextlib import contextmanager
+import re
same
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#38961 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB5UM6HNABZZN22RJKZIIDTSYJLCFANCNFSM4VT2H3HA>
.
|
should add :-> |
i think once we get the implementations out of this file |
@@ -214,3 +216,32 @@ def use_numexpr(use, min_elements=None): | |||
yield | |||
expr._MIN_ELEMENTS = oldmin | |||
expr.set_use_numexpr(olduse) | |||
|
|||
|
|||
class RNGContext: |
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.
prob should be in _random.py
thanks followon comment |
No description provided.