Skip to content

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

Merged
merged 3 commits into from
Jan 5, 2021

Conversation

jbrockmendel
Copy link
Member

No description provided.

@jreback jreback added the Testing pandas testing functions or related to the test suite label Jan 5, 2021
@jreback jreback added this to the 1.3 milestone Jan 5, 2021
@@ -0,0 +1,405 @@
import bz2
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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?

@jbrockmendel
Copy link
Member Author

jbrockmendel commented Jan 5, 2021 via email

@jbrockmendel
Copy link
Member Author

jbrockmendel commented Jan 5, 2021 via email

@jreback
Copy link
Contributor

jreback commented Jan 5, 2021

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 .

should add :->

@jbrockmendel
Copy link
Member Author

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:
Copy link
Contributor

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

@jreback jreback merged commit 19a85cf into pandas-dev:master Jan 5, 2021
@jreback
Copy link
Contributor

jreback commented Jan 5, 2021

thanks followon comment

@jbrockmendel jbrockmendel deleted the ref-tm branch January 5, 2021 02:26
luckyvs1 pushed a commit to luckyvs1/pandas that referenced this pull request Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants