-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
COMPAT: remove compat.scipy #7253
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
is this used anywhere? might be older code |
This is only an internal function (copied exactly from scipy https://github.com/scipy/scipy/blob/master/scipy/stats/stats.py#L4482), and the only use is in the function above (https://github.com/pydata/pandas/blob/master/pandas/compat/scipy.py#L35), which in turn is only used in some tests I think. |
@clham if you'd like to make @jorisvandenbossche think we just ought to move them to pandas.util.testing? (and take out compat.scipy) |
@jreback maybe that's a good idea, since they are only for testing to put them there. |
@clham if you want to do a PR to: put these functions into |
@jreback the |
@jorisvandenbossche hmm, I see that. ok well ok..then just let's take out I would even be in favor of making what do you think? |
@jreback I wouldn't change the name of But requiring scipy does not seem a problem, then compat.scipy can just be removed. |
ok @clham so idea is to completely remove
hopefully you can submit a PR for this! |
Sure. I'll see what I can do. |
I'm confused here.
Was this a typo, or am I missing the ball? I'm too new to assume much at this point. (also, percentileRank behaves erratically when fed a 2d(+) dataframe, but that is an issue for after everything is moved around) |
@clham you can try removing rankdata entirely (and just import from scipy). that might just work. (i think the original intent was to allow the tests to work w/o scipy). but its included on almost all builds now. you might need to use |
No description provided.