median of a column pandas if condition code example Example: get median of column pandas df['column_name'].median()