Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Introduction to NumPy!
You have completed Introduction to NumPy!
Preview
Let's look at some common array manipulation functions.
Learn more
My Notes for Slicing
## Slicing
* Works a lot like normal list slicing.
* You can use commas to separate each dimension slice.
* Always returns a data view
* You can access the base object using the `ndarray.base` property
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
data, but
that's not always gonna be the case.
0:00
You'll find, as you work more and more
with data sets, that you're going to want
0:02
to temporarily bend and
mold the view of your data to work with.
0:06
But leave the original one intact.
0:09
This is where those data views,
0:11
like the ones that we got
from slicing come in handy.
0:13
There are a ton of ways
to manipulate your data.
0:16
Let's take a look at some of
the more popular techniques, and
0:19
I'll show you how and where to learn more.
0:22
Ooh, first though,
let's compare our notes on slicing.
0:25
So slicing works a lot like normal
list slicing, it's very Pythonic.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up