In [1]:
import numpy as np
import pandas as pd
from pandas import Series, DataFrame
In [3]:
my_ser = Series([1,2,3,4], index=['A','B','C','D'])
In [4]:
my_ser
Out[4]:
In [5]:
my_index = my_ser.index
In [6]:
my_index
Out[6]:
In [8]:
my_index[2]
Out[8]:
In [9]:
my_index[2:]
Out[9]:
In [10]:
my_index[0] = 'C'
# TypeError: Index does not support mutable operations
In [ ]: