Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas find median of non zero values in a column

# find the median of non zero values from the column 'minSalaryAnnual
medianMinPA = (df['minSalaryAnnual'].loc[df['minSalaryAnnual'] != 0]).median()
 
PREVIOUS NEXT
Tagged: #pandas #find #median #values #column
ADD COMMENT
Topic
Name
3+7 =