title: Pandas UDF that operates on arrays
body: <p>I have a PySpark UDF that takes an array and returns its suffix:</p>
  
  <pre><code>func.udf( lambda ng: ng[1:], ArrayType(IntegerType()) )
  </code></pre>
  
  <p>Is it possible to turn it into a scalar pandas_udf? 
  Does Pandas offer the necessary vectorized operations?</p>
  
  <p>Thanks </p>