Horje
iqr in python Code Example
iqr in python
from scipy.stats import iqr

x = numpy.array([4.1, 6.2, 6.7, 7.1, 7.4, 7.4, 7.9, 8.1])
print(iqr(x, rng=(25,75), interpolation='midpoint'))
calculate iqr in python dataset example
def outlier_treatment(datacolumn): sorted(datacolumn) Q1,Q3 = np.percentile(datacolumn , [25,75]) IQR = Q3 — Q1 lower_range = Q1 — (1.5 * IQR) upper_range = Q3 + (1.5 * IQR) return lower_range,upper_range
Source: medium.com




Python

Related
scroll down selenium python Code Example scroll down selenium python Code Example
print multiple lines python Code Example print multiple lines python Code Example
sort and reverse list in python Code Example sort and reverse list in python Code Example
np argmin top n Code Example np argmin top n Code Example
pandas replace string with another string Code Example pandas replace string with another string Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7