how to exclude strings in pd df.mean() code example
Example: 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()