Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

calculate quantiles python

>>> np.percentile(df.time_diff, 25)  # Q1
0.48333300000000001

>>> np.percentile(df.time_diff, 50)  # Q2 (median)
0.5

>>> np.percentile(df.time_diff, 75)  # Q3
0.51666699999999999
Comment

PREVIOUS NEXT
Code Example
Python :: python factor number 
Python :: appending items to a tuple python 
Python :: python is not clickable at point (434, 682). Other element would receive the click: 
Python :: python multiply string 
Python :: Install discord.ui on windows 
Python :: argparse accept only few options 
Python :: pylab plotting data 
Python :: function in the input function python 
Python :: pandas dataframe row names 
Python :: discord bot python example 
Python :: python os get dir path 
Python :: python curses for windows 
Python :: EOFError: EOF when reading a line 
Python :: convert string to int dataframe column 
Python :: pandas series 
Python :: python concatenate strings 
Python :: numpy evenly spaced numbers 
Python :: how to negate a boolean python 
Python :: python isin 
Python :: python remove a character from a string 
Python :: print output 
Python :: flask rest api upload image 
Python :: python module path 
Python :: django form formatting 
Python :: CACHE_TYPE flask 
Python :: python how to convert a list of floats to a list of strings 
Python :: Python Time duration in seconds 
Python :: Progress Bars in Python 
Python :: pygame keys keep pressing 
Python :: split string to list 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =