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?
For a head-like function you can just slice the array using dataset[:10].
dataset[:10]
For a tail-like function you can just slice the array using dataset[-10:].
dataset[-10:]
1.4m articles
1.4m replys
5 comments
57.0k users