.quantile ignores axis parameter · Issue #7306 · pandas-dev/pandas (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@CRP

Description

@CRP

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