panda 5 rows into one with median value code example Example: get median of column pandas df['column_name'].median()