title: How to add pandas series operation as a parameter for another function
body: <p>I am trying to create a function which would add certain operation on the pandas series.
  for eg lets say we have this dataframe.</p>
  <pre><code>import numpy as np
  import pandas as pd
  
  def get_info(df, series, func):
  return df[Series].func
  
  data = np.random.randint(10, size= (3, 4))
  df = pd.DataFrame(data, columns= ['a', 'b', 'c', 'd'])
  
  
      a   b   c   d
  0   3   1   3   7
  1   6   8   8   3
  2   9   4   4   9
  </code></pre>
  <p>Here the mean of the 'd' series is df.d.mean() = 6.3.</p>
  <p>Instead I want to use my function:
  <code>mn = get_info(df, 'd', mean())</code></p>
  <p>But it runs into error NameError: name 'mean' is not defined</p>
  <p>Is there any way to achieve this?</p>