Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pandas df describe()

df = pd.DataFrame({'categorical': pd.Categorical(['d','e','f']),
...                    'numeric': [1, 2, 3],
...                    'object': ['a', 'b', 'c']
...                   })
>>> df.describe()
       numeric
count      3.0
mean       2.0
std        1.0
min        1.0
25%        1.5
50%        2.0
75%        2.5
max        3.0
Comment

pandas describe

df.describe() #when df is a Pandas dataframe
Comment

PREVIOUS NEXT
Code Example
Python :: jupyter notebook spark 
Python :: how to run flask in port 80 
Python :: convert .py to exe 
Python :: random normal 
Python :: strip in split python 
Python :: pytest temp directory 
Python :: python input list of ints 
Python :: python venv usage 
Python :: python check variable size in memory 
Python :: raw input py 
Python :: rotate 2d array 
Python :: convert str to datetime 
Python :: flask structure 
Python :: find all unique substring permutations of a string of a specific length python 
Python :: global variable python 
Python :: get char of string python 
Python :: split path in list of directories 
Python :: character in string python 
Python :: flat numpy array 
Python :: dictionary python values 
Python :: atan2 of number python 
Python :: python concatenation 
Python :: plotly coordinates mapping 
Python :: python input for competitive programming 
Python :: Python RegEx Split – re.split() 
Python :: remove vowels in a string python 
Python :: check if all elements in list are equal 
Python :: change python version in colab 
Python :: binary to octal in python 
Python :: continue python 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =