-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: Import testing into main namespace. #6188
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
what r u going to use this for? |
Testing without an extra import and using the make* functions interactively for examples, bug-reporting, etc. |
E.g., we need the pandas test function for testing DataFrame equality. Incidentally, I started to add to this suite some useful functions (DataFrame approximately equal and allclose) until I found that these functions are undocumented and most are written in Cython. Will have to stick to 3+ function calls to test until I find some time for a PR. |
their is a new http://pandas.pydata.org/pandas-docs/dev/whatsnew.html#api-changes |
For precision issues cf. Hmm, equals is an interesting addition. Still nice to keep testing functions in the test namespace, though right? |
why do you want to import testing to the main namespace, can't you import into statsmodels ? (if that's where you are using I assume) |
Numpy imports testing into the main namespace, and I got tired of typing two imports for pandas everywhere. Also for bug reporting. Everyone comes up with there own |
ok...np then....do you want in 0.13.1 (ok with me)...if so go ahead and merge |
Thanks. Doesn't really matter to me. I'm usually on dev version, and like I said I won't ever actually be able to use this in production until our min version is wherever it ends up (which feels like never these days...). |
ok...let's wait for 0.14 then |
@jseabold , I thought you were an academic. What constitutes "production"? is there |
@jseabold don't you want to do (in
as I presume them you want to do
? |
I was leaving it in the util namespace so that the changes are really very minimal, but flat is better than nested, and I'm fine with it if y'all are. |
@jseabold this is fine |
ENH: Import testing into main namespace.
Unfortunately I won't be able to use this in production until 2020 when we require 0.14, but this would make some things a bit easier for projects that use pandas as a library.