![Hands-On Python Deep Learning for the Web](https://wfqqreader-1252317822.image.myqcloud.com/cover/120/36698120/b_36698120.jpg)
上QQ阅读APP看书,第一时间看更新
Array slicing over multiple rows and columns
While it is not possible to slice lists of lists in Python in such a way as to select a specific number of rows and columns in the list of lists, NumPy array slicing works according to the following syntax:
Array [ rowStartIndex : rowEndIndex, columnStartIndex : columnEndIndex ]
Here's an example:
In the preceding example, we are able to select two rows and all elements of those rows in NumPy array a.