Skip to content

Bug in quantile? #7699

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

Closed
araichev opened this issue Jul 9, 2014 · 2 comments
Closed

Bug in quantile? #7699

araichev opened this issue Jul 9, 2014 · 2 comments

Comments

@araichev
Copy link

araichev commented Jul 9, 2014

Hi folks,

I'm using Pandas 0.14.0 with Python3 on a 64bit Linux Mint. It looks like the Pandas quantile function is not working properly with the axis=1 keyword. I'm getting the same output as axis=0, as you can see below.

In [23]: import numpy as np
In [24]: import numpy as np

In [25]:  df = pd.DataFrame(np.array([[1, 1], [2, 10], [3, 100], [4, 100]]),
              columns=['a', 'b'])

In [26]: df
Out[26]:     
   a    b
0  1    1
1  2   10
2  3  100
3  4  100

In [27]: df.quantile(0.5, axis=1)
Out[27]: 
a     2.5
b    55.0
dtype: float64

In [28]: df.quantile(0.5)
Out[28]: 
a     2.5
b    55.0
dtype: float64
@jorisvandenbossche
Copy link
Member

@araichev I think this is already fixed in #7312 (and the fix will be in 0.14.1). But thanks for the report!

@araichev
Copy link
Author

araichev commented Jul 9, 2014

Coolio. Thanks.

@araichev araichev closed this as completed Jul 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants