Values in a Series can be retrieved in two general ways: by index label or by 0-based position. Pandas provides you with a number of ways to perform either of these lookups. Let's examine a few of the common techniques.
Retrieving values in a Series by label or position
Lookup by label using the [] operator and the .ix[] property
An implicit label lookup is performed using the [] operator. This operator normally looks up values based upon the given index labels.
Let's start by using the following Series:
![](https://static.packt-cdn.com/products/9781787123137/graphics/assets/9c4612bd-5cca-4340-a97b-9b17ac9bbd82.png)
A single value can be looked up using just the index label of the desired item:
![](https://static.packt-cdn.com/products/9781787123137/graphics/assets/386ef917-f405-4c4e-8799-1c59c02bdf5a.png)
Multiple items can be retrieved at once using a list of index labels:
![](https://static.packt-cdn.com/products/9781787123137/graphics/assets/f3391e54-6315-4a1e-85f0-595b7d6c718c.png)
We can also look up values using integers that represent positions...