title: Finding the median of multiple columns from a csv file
body: <p>I need to create a function that will take each columns from a csv dataset and return its median value. For example:</p>
  
  <pre><code>def calc_median(column)
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code>df = pd.read_csv(data)
  median = df.median()
  return median
  
  calc_median('column name')
  </code></pre>
  
  <p>Then it gave me the median of all the columns instead of the one column I called for.</p>
  
  <p>I need to make this function so that when I input a specific column, it will return the column's median, not all the columns.</p>