Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Advanced Describe Pandas

Is there a more advanced function like the describe that the pandas has? Normally i will go on like :

r = pd.DataFrame(np.random.randn(1000), columns = ['A'])
r.describe()

and i will get a nice summary.Like this one:

                A
count  1000.000000
mean      0.010230
std       0.982562
min      -2.775969
25%      -0.664840
50%       0.015452
75%       0.694440
max       3.101434

Can i find something a little more elaborate in statsmodels or scipy maybe?

like image 802
Uninvited Guest Avatar asked May 30 '14 16:05

Uninvited Guest


1 Answers

from scipy.stats import describe
describe(r, axis=0)

It will give you the size, (min,max), mean, variance, skewness, and kurtosis

like image 147
pbreach Avatar answered Sep 20 '22 12:09

pbreach