Manipulating Series Objects
Let’s see how we can use slicing and vectorization operations to manipulate the Series objects.
We'll cover the following...
Basic slicing and indexing
A series supports the basic slicing and indexing operations just like the Numpy ndarray
and the native Python list
types.
Integer Index
With the []
operation, you can access the specified value by its location, which is an integer index. Just like accessing an element in a native Python list
.
Slice object
start:stop:step
is an object that contains a portion of a sequence.
- If only
stop