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 :: cool python imports 
Python :: convert mixed number string to float 
Python :: what is the django orm 
Python :: string representation of date time 
Python :: python number type 
Python :: plotly express change legend labels 
Python :: duplicate remove 
Python :: what does abs do in python 
Python :: WARNING: Ignoring invalid distribution c program files python39libsite-packages 
Python :: python loop until condition met 
Python :: Syntax of Python Frozenset 
Python :: has no attribute pythin 
Python :: .sort python 
Python :: python how to run code in ssh 
Python :: python print text 
Python :: NaN stand for python 
Python :: python string after character 
Python :: python typing union 
Python :: firestore search query flutter 
Python :: dot product of lists python 
Python :: python all 
Python :: django form date picker 
Python :: dijkstra algorithm 
Python :: django cache framework 
Python :: Python format() function uses. 
Python :: python list of deeper paths 
Python :: python string: string concatenation 
Python :: wrds in python 
Python :: Forth step - Creating new app 
Python :: pandas month number to name 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =