Skip to content
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

.quantile ignores axis parameter #7306

Closed
CRP opened this issue Jun 2, 2014 · 3 comments · Fixed by #7312
Closed

.quantile ignores axis parameter #7306

CRP opened this issue Jun 2, 2014 · 3 comments · Fixed by #7312
Labels
API Design Bug Numeric Operations Arithmetic, Comparison, and Logical operations
Milestone

Comments

@CRP
Copy link
Contributor

CRP commented Jun 2, 2014

In [10]: a=TS.DataFrame(np.random.random((10,3)))

In [11]: a
Out[11]: 
         0        1        2
0 0.293227 0.489837 0.389012
1 0.070556 0.230420 0.259219
2 0.105651 0.026292 0.737140
3 0.859360 0.092215 0.306204
4 0.377702 0.452027 0.409900
5 0.801594 0.123576 0.138083
6 0.810958 0.827973 0.363331
7 0.325093 0.527616 0.226507
8 0.903319 0.611720 0.636183
9 0.951649 0.663440 0.251934

In [12]: a.quantile(0.5,axis=0)
Out[12]: 
0   0.589648
1   0.470932
2   0.334767
dtype: float64

In [13]: a.quantile(0.5,axis=1)
Out[13]: 
0   0.589648
1   0.470932
2   0.334767
dtype: float64
@jreback jreback added this to the 0.14.1 milestone Jun 2, 2014
@jreback
Copy link
Contributor

jreback commented Jun 2, 2014

@TomAugspurger IIRC this didn't exist before 0.14.0 right?

@CRP
Copy link
Contributor Author

CRP commented Jun 2, 2014

I think so, I have code that broke once I passed from 0.13.1 to 0.14rc1

@TomAugspurger
Copy link
Contributor

Yeah, it was in .13.1 at least.

@CRP thanks for the report, sorry for breaking your code. I'll have a fix up shortly if you want to work off of master. Otherwise as a workaround, a.T.quantile(.5) may work for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design Bug Numeric Operations Arithmetic, Comparison, and Logical operations
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants