Is there a head and tail method for Numpy array?
For a head-like function you can just slice the array using dataset[:10].
For a tail-like function you can just slice the array using dataset[-10:].
I loaded a csv file into 'dataset' and tried to execute dataset.head(), but it reports an error. How to check the head or tail of a numpy array? without specifying specific lines?