title: Numpy apply_along_axis function
body: <p>I am trying to use numpys apply_along_axis with a function who needs more than one argument.</p>
  
  <pre><code>test_array = np.arange(10)
  test_array2 = np.arange(10)
  
  def example_func(a,b):
     return a+b
  
  np.apply_along_axis(example_func, axis=0, arr=test_array, args=test_array2)
  </code></pre>
  
  <p>In the manual: <a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.apply_along_axis.html" rel="noreferrer">http://docs.scipy.org/doc/numpy/reference/generated/numpy.apply_along_axis.html</a> there is the parameter args for additional parameters. But if I try to add that parameter python returns an error:</p>
  
  <p>*TypeError: apply_along_axis() got an unexpected keyword argument 'args'*</p>
  
  <p>or if I don't use args an argument is missing</p>
  
  <p>*TypeError: example_func() takes exactly 2 arguments (1 given)*</p>
  
  <p>This here is just an example code and I know I could solve that in different ways like using numpy.add or np.vectorize. But my question is if I can use numpys apply_along_axis function with a function which uses more than one argument.</p>