In [2]:
import numpy as np
from pandas import Series, DataFrame
import pandas as pd

In [3]:
my_ser = Series([1,2,3,4], index=['A', 'B', 'C', 'D'])

my_ser


Out[3]:
A    1
B    2
C    3
D    4
dtype: int64

In [4]:
my_index = my_ser.index
my_index


Out[4]:
Index([u'A', u'B', u'C', u'D'], dtype='object')

In [5]:
my_index[2]


Out[5]:
'C'

In [6]:
my_index[2:]


Out[6]:
Index([u'C', u'D'], dtype='object')

In [7]:
my_index[0] = 'Z'


---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-7-92ae0de335f8> in <module>()
----> 1 my_index[0] = 'Z'

/Users/andymeyers/anaconda/lib/python2.7/site-packages/pandas/indexes/base.pyc in __setitem__(self, key, value)
   1243 
   1244     def __setitem__(self, key, value):
-> 1245         raise TypeError("Index does not support mutable operations")
   1246 
   1247     def __getitem__(self, key):

TypeError: Index does not support mutable operations

In [ ]: