-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: fix ndarray indexing with float in compat/scipy.py #6740
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
looks good to me - thanks for the patch! this seems minor enough that it doesn't need a doc note - cool with that @jreback ? |
@gdraps see my comments on the issue. |
@gdraps did you see my comments? |
Yes. Is the intent for all tests to compare against numpy.percentile, i.e. FAIL: test_timedelta_ops Traceback (most recent call last): File
File "testing.pyx", line 58, in pandas._testing.assert_almost_equal File "testing.pyx", line 143, in pandas._testing.assert_almost_equal AssertionError: numpy.timedelta64(2599999999,'ns') != FAIL: test_pass_args_kwargs (pandas.tests.test_groupby.TestGroupBy) Traceback (most recent call last): File "/home/gmd/github_shadow/pandas/pandas/tests/test_groupby.py", line
File "/home/gmd/github_shadow/pandas/pandas/util/testing.py", line 566,
File "/home/gmd/github_shadow/pandas/pandas/util/testing.py", line 513,
File "testing.pyx", line 58, in pandas._testing.assert_almost_equal File "testing.pyx", line 93, in pandas._testing.assert_almost_equal File "testing.pyx", line 140, in pandas._testing.assert_almost_equal AssertionError: expected 0.91560 but got 0.93792 On Apr 4, 2014 3:46 PM, "jreback" [email protected] wrote:
|
@gdraps I would be happy just dropping entirely pandas.compat.scipy/_quantile in favor of using the numpy method. Then just change the test_quantile test to compare against the numpy method iteself. (and just remove this part of the scipy dep). Not sure why this was not done originally. Pls also add a test for using datetime64[ns] as I suspect this fails. (look at the isin method to see how to do this) (comments from the issue) no I think should entirely |
OK. Makes sense.
|
this looks leftover as we merged #6810. |
Fixes #5824, with a test to verify the DeprecationWarning is no longer raised.