Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

.describe() python

import pandas as pd
pd.DataFrame("File_name").describe()
Comment

describe in python

Describe returns a series, so you can just select out what you want

In [6]: s = Series(np.random.rand(10))

In [7]: s
Out[7]: 
0    0.302041
1    0.353838
2    0.421416
3    0.174497
4    0.600932
5    0.871461
6    0.116874
7    0.233738
8    0.859147
9    0.145515
dtype: float64

In [8]: s.describe()
Out[8]: 
count    10.000000
mean      0.407946
std       0.280562
min       0.116874
25%       0.189307
50%       0.327940
75%       0.556053
max       0.871461
dtype: float64

In [9]: s.describe()[['count','mean']]
Out[9]: 
count    10.000000
mean      0.407946
dtype: float64
Comment

python describe

Python is a high-level, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation. Its language constructs and object-oriented approach aim to help programmers write clear, logical code for small- and large-scale projects.
Comment

PREVIOUS NEXT
Code Example
Python :: python size of set 
Python :: drop columns 
Python :: python new 
Python :: f string 
Python :: how to run other python files in python 
Python :: rotate matrix 90 degrees clockwise in python 
Python :: matplotlib matshow log scale 
Python :: best jarvis code in python 
Python :: is the multiply code in python 
Python :: add to list in python 
Python :: .extend python 
Python :: python transpose 
Python :: python 3.8 release date 
Python :: python use cases 
Python :: pass in python 
Python :: string template python 
Python :: python variable type 
Python :: pack() tkinter 
Python :: Tree recursive function 
Python :: min and max in python 
Python :: for loop practice problems python 
Python :: python list of paths 
Python :: load py file converted from .ui file 
Python :: landscape odoo report 
Python :: kill os system by pid python script 
Python :: Pipeline_parameters 
Python :: udp client server chat program in python 
Python :: python timestamp human readable 
Python :: bsakbs 
Python :: "DO_NOTHING" is not defined django 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =