Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to find the medium, first, second and third quartile in a pandas data frame

name_of_the_dataframe['name_of_thecolumn'].quantile([0.25,0.5,0.75])


Out[793]: 
0.25    0.483333
0.50    0.500000
0.75    0.516667
Name: time_diff, dtype: float64
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #quartile #pandas #data #frame
ADD COMMENT
Topic
Name
5+7 =