in [ ]data index map(str upperout[ ]array([ohiocoloradonew york]dtype=objectyou can assign to indexmodifying the dataframe in placein [ ]data index data index map(str upperin [ ]data out[ ]one two ohio colorado new york three four if you want to create transformed version of data set without modifying the originala useful method is renamein [ ]data rename(index=str titlecolumns=str upperout[ ]one two three four ohio colorado new york notablyrename can be used in conjunction with dict-like object providing new values for subset of the axis labelsin [ ]data rename(index={'ohio''indiana'}columns={'three''peekaboo'}out[ ]one two peekaboo four indiana colorado new york rename saves having to copy the dataframe manually and assign to its index and col umns attributes should you wish to modify data set in placepass inplace=truealways returns reference to dataframe in [ ] data rename(index={'ohio''indiana'}inplace=truein [ ]data out[ ]one two indiana colorado new york three four data wranglingcleantransformmergereshape www it-ebooks info