Numpy mathematical, concatenate

Basic mathematical functions operate element-wise on arrays. They are available both as operator overloads and as functions in the NumPy module.


  • Two or more arrays can be concatenated together using the concatenate function with a tuple of the arrays to be joined.
  • If an array has more than one dimension, it is possible to specify the axis along which multiple arrays are concatenated. By default, it is along the first dimension.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store