Is there a head and tail method for Numpy array?

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?

Leave a Comment