From the course: Data Analysis with Python and Pandas

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Challenge: Indexing and slicing arrays

Challenge: Indexing and slicing arrays

From the course: Data Analysis with Python and Pandas

Challenge: Indexing and slicing arrays

- [Instructor] All right, so we have another email in from Ross Retail, subject is indexing and slicing arrays. He writes us, "Okay, last theoretical exercise before we start working with real data. I'm familiar with indexing and slicing in base python, but have no idea how it works in multiple dimensions. I provided a few cuts of the data in the notebook. Can you slice and dice the random array we created in the last exercise? Thanks." And once again, these are going to be stored in our section one notebook. If we take a look at a results preview, we want to start with that random array that we already created. We then want to grab the first two rows through slicing, the first column through slicing, and then finally, the second number in the third row of this array. And just to take a quick look at this notebook, we're going to be slicing this random array we already created, so we can just go ahead and reference random array. If you're restarting this session, maybe taking a break,…

Contents