title: How to check if a variable is either a python list, numpy array or pandas series
body: <p>I have a function that takes in a variable that would work if it is any of the following three types</p>
  
  <pre><code> 1. pandas Series
   2. numpy array (ndarray)
   3. python list
  </code></pre>
  
  <p>Any other type should be rejected. What is the most efficient way to check this?</p>