The method for obtaining the median of certain columns in a dataset is:
- Identify the columns for which you want to find the median.
- Sort the values in each of these columns in ascending or descending order.
- If there are an odd number of values, the median is the middle value in the sorted list.
- If there are an even number of values, the median is the average of the two middle values in the sorted list.
- Repeat the process for each column.