You can use the numpy.ndarray
to show the first few elements of an array in Python by slicing the array with the indexes of the elements you want to display.
Here's an example of how to show the first 5 elements of a numpy array:
main.py134 chars8 lines
This will output:
main.py12 chars2 lines
gistlibby LogSnag