Skip to main content

NumPy Slicing Arrays


In this tutorial you will learn:

  • NumPy Array Slicing
  • 1-D NumPy Array Slicing
  • 2-D NumPy Array Slicing

NumPy Array Slicing

We can also slice NumPy Array just like lists. When we slice the array in NumPy  the same data is returned but the order is different. It is actually a view of the original array, whereas in case of lists slicing return a whole new list object. In order slice an array we pass there are three different ways. The first way is to pass the starting and ending index in square brackets and another way is to pass the starting index, ending index and step. Not

Add new comment