Search found 1 match

Return

by Eli
7 years ago
Jump to forum
Jump to topic

Slicing Arrays in Python

The standard rules of Python slicing apply to arrays. Basic slicing for example on lists, extends Python’s basic concept of slicing to N dimensions. Here are a number of Python array slicing examples. import numpy as np #Create a 10x10 array: a = np.arange(100).reshape(10, 10) In [1]: a Out[1]: arra...